mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add timer sensor entity which has rw hour and read-only minute (#129413)
Co-authored-by: jangwon.lee <jangwon.lee@lge.com>
This commit is contained in:
parent
673f0224c9
commit
c227f6dc2c
@ -483,7 +483,10 @@ async def async_setup_entry(
|
|||||||
description.key,
|
description.key,
|
||||||
(
|
(
|
||||||
ActiveMode.READABLE
|
ActiveMode.READABLE
|
||||||
if coordinator.api.device.device_type == DeviceType.COOKTOP
|
if (
|
||||||
|
coordinator.api.device.device_type == DeviceType.COOKTOP
|
||||||
|
or isinstance(description.key, TimerProperty)
|
||||||
|
)
|
||||||
else ActiveMode.READ_ONLY
|
else ActiveMode.READ_ONLY
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user