I have updated to the latest ESPHome release and the code doesn’t compile anymore.
src/esphome/components/powerpal_ble/powerpal_ble.cpp: In member function 'void esphome::powerpal_ble::Powerpal::parse_measurement_(const uint8_t*, uint16_t)':
src/esphome/components/powerpal_ble/powerpal_ble.cpp:107:13: error: 'ESPTime' is not a member of 'esphome::time'
time::ESPTime date_of_measurement = time_->now();
^~~~~~~
src/esphome/components/powerpal_ble/powerpal_ble.cpp:107:13: note: suggested alternative:
In file included from src/esphome/components/time/real_time_clock.h:8,
from src/esphome/components/homeassistant/time/homeassistant_time.h:4,
from src/esphome.h:32,
from src/esphome/components/powerpal_ble/powerpal_ble.h:8,
from src/esphome/components/powerpal_ble/powerpal_ble.cpp:1:
src/esphome/core/time.h:16:8: note: 'esphome::ESPTime'
struct ESPTime {
^~~~~~~
src/esphome/components/powerpal_ble/powerpal_ble.cpp:108:11: error: 'date_of_measurement' was not declared in this scope
if (date_of_measurement.is_valid()) {
^~~~~~~~~~~~~~~~~~~
src/esphome/components/powerpal_ble/powerpal_ble.cpp:108:11: note: suggested alternative: 'parse_measurement_'
if (date_of_measurement.is_valid()) {
^~~~~~~~~~~~~~~~~~~
parse_measurement_
*** [/data/esphome-web-36d5b8/.pioenvs/esphome-web-36d5b8/src/esphome/components/powerpal_ble/powerpal_ble.cpp.o] Error 1
========================= [FAILED] Took 27.06 seconds =========================
I saw there is a breaking change
but looking at the GitHub issue I’m not sure how to fix this…
Have you experienced this?