mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Minor changes to laundrify binary_sensor platform (#121435)
This commit is contained in:
parent
d95b28bdee
commit
8e45eb6168
@ -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
|
||||||
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"entity": {
|
||||||
|
"binary_sensor": {
|
||||||
|
"wash_cycle": {
|
||||||
|
"name": "Cycle"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"step": {
|
"step": {
|
||||||
"init": {
|
"init": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user