mirror of
https://github.com/esphome/esphome.git
synced 2025-02-15 09:28:16 +00:00
lint
This commit is contained in:
parent
9194c82213
commit
0c06abd960
@ -289,7 +289,10 @@ class EsphomeCommandWebSocket(tornado.websocket.WebSocketHandler):
|
|||||||
self._use_popen = os.name == "nt"
|
self._use_popen = os.name == "nt"
|
||||||
|
|
||||||
@authenticated
|
@authenticated
|
||||||
async def on_message(self, message):
|
async def on_message( # pylint: disable=invalid-overridden-method
|
||||||
|
self, message: str
|
||||||
|
) -> None:
|
||||||
|
# Since tornado 4.5, on_message is allowed to be a coroutine
|
||||||
# Messages are always JSON, 500 when not
|
# Messages are always JSON, 500 when not
|
||||||
json_message = json.loads(message)
|
json_message = json.loads(message)
|
||||||
type_ = json_message["type"]
|
type_ = json_message["type"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user