mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Improve logging to identify which deCONZ device is at fault (#40808)
This commit is contained in:
parent
2922d4675f
commit
d95f83b5fb
@ -16,6 +16,7 @@ from homeassistant.const import (
|
||||
)
|
||||
|
||||
from . import DOMAIN
|
||||
from .const import LOGGER
|
||||
from .deconz_event import CONF_DECONZ_EVENT, CONF_GESTURE
|
||||
|
||||
CONF_SUBTYPE = "subtype"
|
||||
@ -429,6 +430,7 @@ async def async_attach_trigger(hass, config, action, automation_info):
|
||||
|
||||
deconz_event = _get_deconz_event_from_device_id(hass, device.id)
|
||||
if deconz_event is None:
|
||||
LOGGER.error("No deconz_event tied to device %s found", device.name)
|
||||
raise InvalidDeviceAutomationConfig
|
||||
|
||||
event_id = deconz_event.serial
|
||||
|
Loading…
x
Reference in New Issue
Block a user