mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Fix Tuya Covers without state in their control data point (#66564)
This commit is contained in:
parent
cbdbb66475
commit
430162fa5f
@ -158,7 +158,10 @@ async def async_setup_entry(
|
||||
device = hass_data.device_manager.device_map[device_id]
|
||||
if descriptions := COVERS.get(device.category):
|
||||
for description in descriptions:
|
||||
if description.key in device.status:
|
||||
if (
|
||||
description.key in device.function
|
||||
or description.key in device.status_range
|
||||
):
|
||||
entities.append(
|
||||
TuyaCoverEntity(
|
||||
device, hass_data.device_manager, description
|
||||
|
Loading…
x
Reference in New Issue
Block a user