Skip to content

Commit

Permalink
Merge pull request #44 from golles/add_place
Browse files Browse the repository at this point in the history
Add place sensor
  • Loading branch information
golles authored Nov 10, 2022
2 parents 1578510 + 82ee167 commit 3bdf2c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/knmi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 3bdf2c0

Please sign in to comment.