mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
additional log info and strings fix (#35622)
This commit is contained in:
parent
4b00dedff5
commit
b7ab07c987
@ -143,19 +143,22 @@ class EventManager:
|
|||||||
async def async_parse_messages(self, messages) -> None:
|
async def async_parse_messages(self, messages) -> None:
|
||||||
"""Parse notification message."""
|
"""Parse notification message."""
|
||||||
for msg in messages:
|
for msg in messages:
|
||||||
# LOGGER.debug("ONVIF Event Message %s: %s", self.device.host, pformat(msg))
|
|
||||||
topic = msg.Topic._value_1
|
topic = msg.Topic._value_1
|
||||||
parser = PARSERS.get(topic)
|
parser = PARSERS.get(topic)
|
||||||
if not parser:
|
if not parser:
|
||||||
if topic not in UNHANDLED_TOPICS:
|
if topic not in UNHANDLED_TOPICS:
|
||||||
LOGGER.info("No registered handler for event: %s", msg)
|
LOGGER.info(
|
||||||
|
"No registered handler for event from %s: %s",
|
||||||
|
self.unique_id,
|
||||||
|
msg,
|
||||||
|
)
|
||||||
UNHANDLED_TOPICS.add(topic)
|
UNHANDLED_TOPICS.add(topic)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
event = await parser(self.unique_id, msg)
|
event = await parser(self.unique_id, msg)
|
||||||
|
|
||||||
if not event:
|
if not event:
|
||||||
LOGGER.warning("Unable to parse event: %s", msg)
|
LOGGER.warning("Unable to parse event from %s: %s", self.unique_id, msg)
|
||||||
return
|
return
|
||||||
|
|
||||||
self._events[event.uid] = event
|
self._events[event.uid] = event
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
},
|
},
|
||||||
"manual_input": {
|
"manual_input": {
|
||||||
"data": {
|
"data": {
|
||||||
|
"name": "Name",
|
||||||
"host": "[%key:common::config_flow::data::host%]",
|
"host": "[%key:common::config_flow::data::host%]",
|
||||||
"port": "[%key:common::config_flow::data::port%]"
|
"port": "[%key:common::config_flow::data::port%]"
|
||||||
},
|
},
|
||||||
@ -55,4 +56,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user