mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Add icon translations to Laundrify (#111856)
This commit is contained in:
parent
bfdc640e04
commit
6e6d3e7565
@ -40,10 +40,10 @@ class LaundrifyPowerPlug(
|
|||||||
"""Representation of a laundrify Power Plug."""
|
"""Representation of a laundrify Power Plug."""
|
||||||
|
|
||||||
_attr_device_class = BinarySensorDeviceClass.RUNNING
|
_attr_device_class = BinarySensorDeviceClass.RUNNING
|
||||||
_attr_icon = "mdi:washing-machine"
|
|
||||||
_attr_unique_id: str
|
_attr_unique_id: str
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
_attr_translation_key = "laundrify_power_plug"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice
|
self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice
|
||||||
|
9
homeassistant/components/laundrify/icons.json
Normal file
9
homeassistant/components/laundrify/icons.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"binary_sensor": {
|
||||||
|
"laundrify_power_plug": {
|
||||||
|
"default": "mdi:washing-machine"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user