Skip to content

Commit 82ee167

Browse files
committed
Add place sensor
1 parent fc7abb4 commit 82ee167

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

custom_components/knmi/sensor.py

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
SensorEntityDescription,
1616
SensorStateClass,
1717
)
18+
from homeassistant.helpers.entity import EntityCategory
1819
from homeassistant.helpers.entity_platform import AddEntitiesCallback
1920
from homeassistant.helpers.typing import StateType
2021
from homeassistant.helpers.update_coordinator import CoordinatorEntity
@@ -44,6 +45,12 @@
4445
native_unit_of_measurement=PERCENTAGE,
4546
state_class=SensorStateClass.MEASUREMENT,
4647
),
48+
SensorEntityDescription(
49+
key="plaats",
50+
name="Plaats",
51+
icon="mdi:map-marker",
52+
entity_category=EntityCategory.DIAGNOSTIC,
53+
),
4754
SensorEntityDescription(
4855
key="samenv",
4956
name="Omschrijving",

0 commit comments

Comments
 (0)