From fc47e9443b61342f111078e8da8f0e6b281240aa Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 Oct 2017 01:39:25 -0700 Subject: [PATCH] OwnTracks: Fix handler is None checking (#9794) * OwnTracks: Fix handler is None checking * Update owntracks.py --- homeassistant/components/device_tracker/owntracks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_tracker/owntracks.py b/homeassistant/components/device_tracker/owntracks.py index 07dc9f1ab5c..f301b2f454e 100644 --- a/homeassistant/components/device_tracker/owntracks.py +++ b/homeassistant/components/device_tracker/owntracks.py @@ -407,7 +407,8 @@ def async_handle_message(hass, context, message): handler = HANDLERS.get(msgtype) if handler is None: - error = 'Received unsupported message type: {}.'.format(msgtype) - _LOGGER.warning(error) + _LOGGER.warning( + 'Received unsupported message type: %s.', msgtype) + return yield from handler(hass, context, message)