OwnTracks: Fix handler is None checking (#9794)
* OwnTracks: Fix handler is None checking * Update owntracks.pypull/9401/merge
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…
Reference in New Issue