-Add update sensor to HA. AWL search for an update every hour.
- Fixes duration in custom apps
This commit is contained in:
Stephan Mühl
2023-04-02 01:08:26 +02:00
parent 88085597d7
commit bc72069ae3
9 changed files with 38 additions and 70 deletions

View File

@@ -7,7 +7,7 @@
#include <ArduinoJson.h>
#include "Dictionary.h"
#include "PeripheryManager.h"
#include "Updater.h"
#include "UpdateManager.h"
WiFiClient espClient;
uint8_t lastBrightness;
@@ -67,7 +67,7 @@ void onButtonCommand(HAButton *sender)
else if (sender == doUpdate)
{
if (UPDATE_AVAILABLE)
Updater.updateFirmware();
UpdateManager.updateFirmware();
}
}
@@ -194,7 +194,7 @@ void onMqttMessage(const char *topic, const uint8_t *payload, uint16_t length)
if (strTopic == MQTT_PREFIX + "/doupdate")
{
if (UPDATE_AVAILABLE)
Updater.updateFirmware();
UpdateManager.updateFirmware();
return;
}