Minor changes to laundrify binary_sensor platform (#121435)
This commit is contained in:
parent
d95b28bdee
commit
8e45eb6168
3 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
{
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"wash_cycle": {
|
||||
"name": "Cycle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"step": {
|
||||
"init": {
|
||||
|
|
Loading…
Add table
Reference in a new issue