mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Reformat
This commit is contained in:
parent
5a32cd1977
commit
2d94c1963c
@ -120,7 +120,9 @@ class MqttClient(Communicator): # type: ignore[misc]
|
||||
client.subscribe(f"{self.mqtt_config.topic_prefix}/#")
|
||||
self._set_initial_topics()
|
||||
|
||||
def _on_disconnect(self, client: mqtt.Client, userdata: mqtt._UserData, flags: Any, rc: mqtt) -> None:
|
||||
def _on_disconnect(
|
||||
self, client: mqtt.Client, userdata: mqtt._UserData, flags: Any, rc: mqtt
|
||||
) -> None:
|
||||
"""Mqtt disconnection callback."""
|
||||
self.connected = False
|
||||
logger.error("MQTT disconnected")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user