Add icon translations to Laundrify (#111856)

pull/111868/head
Joost Lekkerkerker 2024-02-29 17:00:15 +01:00 committed by GitHub
parent bfdc640e04
commit 6e6d3e7565
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -40,10 +40,10 @@ class LaundrifyPowerPlug(
"""Representation of a laundrify Power Plug."""
_attr_device_class = BinarySensorDeviceClass.RUNNING
_attr_icon = "mdi:washing-machine"
_attr_unique_id: str
_attr_has_entity_name = True
_attr_name = None
_attr_translation_key = "laundrify_power_plug"
def __init__(
self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice

View File

@ -0,0 +1,9 @@
{
"entity": {
"binary_sensor": {
"laundrify_power_plug": {
"default": "mdi:washing-machine"
}
}
}
}