Skip to content

Commit

Permalink
Add icon translation
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Mar 6, 2024
1 parent 85f5d1d commit f814712
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/adaptive_cover/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class AdaptiveCoverBinarySensor(

_attr_has_entity_name = True
_attr_should_poll = False
_attr_translation_key = "sun_motion"

def __init__(
self,
Expand Down
12 changes: 12 additions & 0 deletions custom_components/adaptive_cover/icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"entity": {
"binary_sensor": {
"sun_motion": {
"default": "mdi:weather-sunny",
"state":{
"off": "mdi:weather-sunny-off"
}
}
}
}
}

0 comments on commit f814712

Please sign in to comment.