mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Light control support to Axis devices (#36611)
* IR light support to Axis devices * Change how to read light state * Add tests * Bump dependency to v32 * Assert variables passed to set_intensity
This commit is contained in:
@@ -42,7 +42,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Add binary sensor from Axis device."""
|
||||
event = device.api.event[event_id]
|
||||
|
||||
if event.CLASS != CLASS_OUTPUT:
|
||||
if event.CLASS != CLASS_OUTPUT and not (
|
||||
event.CLASS == CLASS_LIGHT and event.TYPE == "Light"
|
||||
):
|
||||
async_add_entities([AxisBinarySensor(event, device)], True)
|
||||
|
||||
device.listeners.append(
|
||||
|
||||
Reference in New Issue
Block a user