mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-26 08:13:06 +05:00
fix: adapt Home Assistant discovery to v9
This commit is contained in:
1 parent
e56dd1de11
commit
72a8cd0eb1
4 files changed
+36
-21
No files matched your search
+2
-1
@@ -7,6 +7,7 @@
|
||||
#include <esp_log.h>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@@ -123,7 +124,7 @@ std::string mqttTopic(const Parts&... parts) {
|
||||
}
|
||||
|
||||
// Home Assistant discovery
|
||||
extern HA::Discovery haDiscovery;
|
||||
extern std::unique_ptr<HA::Discovery> haDiscovery;
|
||||
bool publishHaEntity(HaEntity entityId, bool remove);
|
||||
void publishDynamicSensor(
|
||||
const Sensors::Settings& sensor,
|
||||
|
||||
Reference in new issue
Block a user