mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Only replace topic (#4884)
This commit is contained in:
parent
bc5aa1141a
commit
d547680116
@ -85,7 +85,7 @@ class MqttClient(Communicator): # type: ignore[misc]
|
||||
self, client: mqtt.Client, userdata: Any, message: mqtt.MQTTMessage
|
||||
) -> None:
|
||||
self._dispatcher(
|
||||
message.topic.replace(f"{self.mqtt_config.topic_prefix}/", ""),
|
||||
message.topic.replace(f"{self.mqtt_config.topic_prefix}/", "", 1),
|
||||
message.payload.decode(),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user