From 05778ad307b4ba9e8d8fcab8db9817b62d918cd5 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Thu, 14 May 2020 11:25:58 -0400 Subject: [PATCH] additional log info and strings fix (#35622) --- homeassistant/components/onvif/event.py | 9 ++++++--- homeassistant/components/onvif/strings.json | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/onvif/event.py b/homeassistant/components/onvif/event.py index 2c56d46ad39..ee7d4349dc4 100644 --- a/homeassistant/components/onvif/event.py +++ b/homeassistant/components/onvif/event.py @@ -143,19 +143,22 @@ class EventManager: async def async_parse_messages(self, messages) -> None: """Parse notification message.""" for msg in messages: - # LOGGER.debug("ONVIF Event Message %s: %s", self.device.host, pformat(msg)) topic = msg.Topic._value_1 parser = PARSERS.get(topic) if not parser: 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) continue event = await parser(self.unique_id, msg) 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 self._events[event.uid] = event diff --git a/homeassistant/components/onvif/strings.json b/homeassistant/components/onvif/strings.json index b80e8b57fc7..b6ae9b98d9a 100644 --- a/homeassistant/components/onvif/strings.json +++ b/homeassistant/components/onvif/strings.json @@ -23,6 +23,7 @@ }, "manual_input": { "data": { + "name": "Name", "host": "[%key:common::config_flow::data::host%]", "port": "[%key:common::config_flow::data::port%]" }, @@ -55,4 +56,4 @@ } } } -} \ No newline at end of file +}