Minor changes to laundrify binary_sensor platform (#121435)

This commit is contained in:
xLarry 2024-07-07 15:02:57 +02:00 committed by GitHub
parent d95b28bdee
commit 8e45eb6168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class LaundrifyPowerPlug(
_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" _attr_translation_key = "wash_cycle"
def __init__( def __init__(
self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice

View File

@ -1,8 +1,12 @@
{ {
"entity": { "entity": {
"binary_sensor": { "binary_sensor": {
"laundrify_power_plug": { "wash_cycle": {
"default": "mdi:washing-machine" "default": "mdi:washing-machine",
"state": {
"on": "mdi:washing-machine",
"off": "mdi:washing-machine-off"
}
} }
} }
} }

View File

@ -1,4 +1,11 @@
{ {
"entity": {
"binary_sensor": {
"wash_cycle": {
"name": "Cycle"
}
}
},
"config": { "config": {
"step": { "step": {
"init": { "init": {