1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Minor improvements of MQTT typing (#52578)

* Minor improvements of MQTT typing

* Tweak
This commit is contained in:
Erik Montnemery
2021-07-06 14:38:48 +02:00
committed by GitHub
parent dc72c6c606
commit 4d32e1ed01
8 changed files with 56 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ from axis.streammanager import SIGNAL_PLAYING, STATE_STOPPED
from homeassistant.components import mqtt
from homeassistant.components.mqtt import DOMAIN as MQTT_DOMAIN
from homeassistant.components.mqtt.models import Message
from homeassistant.components.mqtt.models import ReceiveMessage
from homeassistant.const import (
CONF_HOST,
CONF_NAME,
@@ -195,7 +195,7 @@ class AxisNetworkDevice:
)
@callback
def mqtt_message(self, message: Message) -> None:
def mqtt_message(self, message: ReceiveMessage) -> None:
"""Receive Axis MQTT message."""
self.disconnect_from_stream()