mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02: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:
committed by
GitHub
parent
673f0224c9
commit
c227f6dc2c
@@ -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
|
||||
),
|
||||
)
|
||||
|
Reference in New Issue
Block a user