mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-12-03 11:43:04 +05:00
fix: synchronize Home Assistant discovery subscriptions
Reuse Discovery through its device and base topic setters. Handle HA status subscriptions and prefix changes in the discovery task.
This commit is contained in:
1 parent
5fcf0af96d
commit
d7554f2fa1
3 files changed
+59
-36
No files matched your search
+1
-2
@@ -595,8 +595,7 @@ static void restApi() {
|
||||
strcmp(previousMqtt.server, settings.mqtt.server) != 0 ||
|
||||
strcmp(previousMqtt.user, settings.mqtt.user) != 0 ||
|
||||
strcmp(previousMqtt.password, settings.mqtt.password) != 0 ||
|
||||
strcmp(previousMqtt.prefix, settings.mqtt.prefix) != 0 ||
|
||||
strcmp(previousMqtt.homeAssistantDiscoveryPrefix, settings.mqtt.homeAssistantDiscoveryPrefix) != 0;
|
||||
strcmp(previousMqtt.prefix, settings.mqtt.prefix) != 0;
|
||||
|
||||
} else if (section == S_EMERGENCY) {
|
||||
result = fromJson(requestDoc, settings.emergency);
|
||||
|
||||
Reference in new issue
Block a user