airy10 / esphome-m5stickC

esphome components for the M5StickC
82 stars 78 forks source link

Fixes compilation with esphome > 2022.2.6. #17

Closed gonzalop closed 2 years ago

gonzalop commented 2 years ago

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 sensor.sensor_schema(UNIT_PERCENT, ICON_BATTERY, 1).extend({ TypeError: sensor_schema() takes from 0 to 1 positional arguments but 3 were given