Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use device class icon in Crownstone #111361

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use device class icon in Crownstone
  • Loading branch information
joostlek committed Feb 25, 2024
commit 3eb6dfd79ed378dd9892ba2ea5132f99334c8058
9 changes: 9 additions & 0 deletions homeassistant/components/crownstone/icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entity": {
"light": {
"german_power_outlet": {
"default": "mdi:power-socket-de"
}
}
}
}
2 changes: 1 addition & 1 deletion homeassistant/components/crownstone/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class CrownstoneEntity(CrownstoneBaseEntity, LightEntity):
Light platform is used to support dimming.
"""

_attr_icon = "mdi:power-socket-de"
_attr_name = None
_attr_translation_key = "german_power_outlet"

def __init__(
self, crownstone_data: Crownstone, usb: CrownstoneUart | None = None
Expand Down
Loading