Only rely on device status when adding Tuya entities (#63074)
This commit is contained in:
parent
9c166dfff2
commit
12450daf56
8 changed files with 8 additions and 29 deletions
|
@ -301,10 +301,7 @@ async def async_setup_entry(
|
|||
device = hass_data.device_manager.device_map[device_id]
|
||||
if descriptions := LIGHTS.get(device.category):
|
||||
for description in descriptions:
|
||||
if (
|
||||
description.key in device.function
|
||||
or description.key in device.status
|
||||
):
|
||||
if description.key in device.status:
|
||||
entities.append(
|
||||
TuyaLightEntity(
|
||||
device, hass_data.device_manager, description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue