Skip to content

Commit

Permalink
Merge pull request #149 from Olen/icon-dli
Browse files Browse the repository at this point in the history
Add dli-icons
  • Loading branch information
Olen authored Apr 3, 2024
2 parents 79ef86e + 162e227 commit 2caec72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/plant/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
ICON_HUMIDITY = "mdi:water-percent"
ICON_ILLUMINANCE = "mdi:brightness-6"
ICON_MOISTURE = "mdi:water"
ICON_PPFD = "mdi:white-balance-sunny"
ICON_TEMPERATURE = "mdi:thermometer"

OPB_GET = "get"
Expand Down
4 changes: 3 additions & 1 deletion custom_components/plant/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def __init__(
self._plant = plantdevice

self._external_sensor = self._plant.sensor_illuminance.entity_id
self._attr_icon = "mdi:white-balance-sunny"
self._attr_icon = ICON_PPFD
super().__init__(hass, config, plantdevice)
self._follow_unit = False
self.entity_id = async_generate_entity_id(
Expand Down Expand Up @@ -538,6 +538,7 @@ def __init__(
unit_time=UnitOfTime.SECONDS,
)
self._unit_of_measurement = UNIT_DLI
self._attr_icon = ICON_DLI
self.entity_id = async_generate_entity_id(
f"{DOMAIN_SENSOR}.{{}}", self.name, current_ids={}
)
Expand Down Expand Up @@ -597,6 +598,7 @@ def __init__(
)

self._unit_of_measurement = UNIT_DLI
self._attr_icon = ICON_DLI
self._plant = plantdevice

@property
Expand Down

0 comments on commit 2caec72

Please sign in to comment.