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_has_entity_name = True
_attr_name = None
_attr_translation_key = "laundrify_power_plug"
_attr_translation_key = "wash_cycle"
def __init__(
self, coordinator: LaundrifyUpdateCoordinator, device: LaundrifyDevice

View file

@ -1,8 +1,12 @@
{
"entity": {
"binary_sensor": {
"laundrify_power_plug": {
"default": "mdi:washing-machine"
"wash_cycle": {
"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": {
"step": {
"init": {