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:
LG-ThinQ-Integration
2024-10-29 22:44:06 +09:00
committed by GitHub
parent 673f0224c9
commit c227f6dc2c

View File

@@ -483,7 +483,10 @@ async def async_setup_entry(
description.key,
(
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
),
)