From 82ee1679d8ed816ec39de042b9b952328c823e5c Mon Sep 17 00:00:00 2001 From: golles Date: Wed, 9 Nov 2022 19:41:56 +0000 Subject: [PATCH] Add place sensor --- custom_components/knmi/sensor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom_components/knmi/sensor.py b/custom_components/knmi/sensor.py index 56a987e..a0b671d 100644 --- a/custom_components/knmi/sensor.py +++ b/custom_components/knmi/sensor.py @@ -15,6 +15,7 @@ SensorEntityDescription, SensorStateClass, ) +from homeassistant.helpers.entity import EntityCategory from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import StateType from homeassistant.helpers.update_coordinator import CoordinatorEntity @@ -44,6 +45,12 @@ native_unit_of_measurement=PERCENTAGE, state_class=SensorStateClass.MEASUREMENT, ), + SensorEntityDescription( + key="plaats", + name="Plaats", + icon="mdi:map-marker", + entity_category=EntityCategory.DIAGNOSTIC, + ), SensorEntityDescription( key="samenv", name="Omschrijving",