Adaptation to 2.1 contract

This commit is contained in:
Gunnar Skjold
2022-02-20 11:22:14 +01:00
parent 5325f8f845
commit bb6e8838b4
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
#include "web/root/hadiscover1_json.h"
#include "web/root/hadiscover2_json.h"
bool HomeAssistantMqttHandler::publish(AmsData* data, AmsData* previousState) {
bool HomeAssistantMqttHandler::publish(AmsData* data, AmsData* previousState, EnergyAccounting* ea) {
if(topic.isEmpty() || !mqtt->connected())
return false;

View File

@@ -11,7 +11,7 @@ public:
this->hw = hw;
this->json = (char*) malloc(BufferSize);
};
bool publish(AmsData* data, AmsData* previousState);
bool publish(AmsData* data, AmsData* previousState, EnergyAccounting* ea);
bool publishTemperatures(AmsConfiguration*, HwTools*);
bool publishPrices(EntsoeApi*);
bool publishSystem(HwTools*);