Fix Tuya Covers without state in their control data point (#66564)
parent
addc6bce63
commit
8b39866bb7
|
@ -158,7 +158,10 @@ async def async_setup_entry(
|
||||||
device = hass_data.device_manager.device_map[device_id]
|
device = hass_data.device_manager.device_map[device_id]
|
||||||
if descriptions := COVERS.get(device.category):
|
if descriptions := COVERS.get(device.category):
|
||||||
for description in descriptions:
|
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(
|
entities.append(
|
||||||
TuyaCoverEntity(
|
TuyaCoverEntity(
|
||||||
device, hass_data.device_manager, description
|
device, hass_data.device_manager, description
|
||||||
|
|
Loading…
Reference in New Issue