mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
OwnTracks: Fix handler is None checking (#9794)
* OwnTracks: Fix handler is None checking * Update owntracks.py
This commit is contained in:
parent
e144b0f0f9
commit
fc47e9443b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user