esphome versions after 2022.2.6 fail to compile axp192 with the
following error:
File "/home/test/esphome/custom_components/axp192/sensor.py", line 16, in <module>
sensor.sensor_schema(UNIT_PERCENT, ICON_BATTERY, 1).extend({
TypeError: sensor_schema() takes from 0 to 1 positional arguments but 3 were given
Fixes errors including:
src/esphome/components/axp192/axp192.cpp: In member function 'void esphome::axp192::AXP192Component::DeepSleep(uint64_t)':
src/esphome/components/axp192/axp192.cpp:355:35: error: 'gpio_num_t' was not declared in this scope
esp_sleep_enable_ext0_wakeup((gpio_num_t)37, LOW);
^
src/esphome/components/axp192/axp192.cpp:355:50: error: 'LOW' was not declared in this scope
esp_sleep_enable_ext0_wakeup((gpio_num_t)37, LOW);
^