mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Log unknown websocket commands at info instead of error (#72336)
This commit is contained in:
parent
4dbc1ed7a7
commit
20960e182d
@ -93,7 +93,7 @@ class ActiveConnection:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if msg["type"] not in handlers:
|
if msg["type"] not in handlers:
|
||||||
self.logger.error("Received invalid command: {}".format(msg["type"]))
|
self.logger.info("Received unknown command: {}".format(msg["type"]))
|
||||||
self.send_message(
|
self.send_message(
|
||||||
messages.error_message(
|
messages.error_message(
|
||||||
cur_id, const.ERR_UNKNOWN_COMMAND, "Unknown command."
|
cur_id, const.ERR_UNKNOWN_COMMAND, "Unknown command."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user