Skip to content

Commit

Permalink
Update camera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
azerty9971 committed Jan 31, 2025
1 parent 67c7820 commit 608f32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xtend_tuya/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(

@staticmethod
async def should_entity_be_added(hass: HomeAssistant, device: XTDevice, multi_manager: MultiManager) -> bool:
if await multi_manager.get_device_stream_allocate(device.id, "rtsp"):
if await hass.async_add_executor_job(multi_manager.get_device_stream_allocate, device.id, "rtsp"):
LOGGER.warning(f"Device {device.name} added as camera")
return True
LOGGER.warning(f"Device {device.name} NOT added as camera")
Expand Down

0 comments on commit 608f32a

Please sign in to comment.