mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Need to set topic prefix
This commit is contained in:
parent
602db3dbf8
commit
2306b73174
@ -65,7 +65,9 @@ class MqttClient(Communicator):
|
|||||||
logger.error(f"Unable to publish to {topic}: client is not connected")
|
logger.error(f"Unable to publish to {topic}: client is not connected")
|
||||||
return
|
return
|
||||||
|
|
||||||
self.client.publish(topic, payload, retain=retain)
|
self.client.publish(
|
||||||
|
f"{self.mqtt_config.topic_prefix}/topic", payload, retain=retain
|
||||||
|
)
|
||||||
|
|
||||||
def _set_initial_topics(self) -> None:
|
def _set_initial_topics(self) -> None:
|
||||||
"""Set initial state topics."""
|
"""Set initial state topics."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user