athom-tech / athom-configs

Athom Technology Official Center
MIT License
190 stars 127 forks source link

Replace deprecated update_interval sensor config with throttle filter #38

Closed dmakovec closed 4 months ago

dmakovec commented 4 months ago

Bring athom-smart-plug-v2.yaml config into line with changes introduced to cse7766 platform in https://github.com/esphome/esphome/pull/6095

As of 2024.2.0, athom-smart-plug-v2 was not compatible with cse7766 as the above change switches from a pseudo-poll to a streaming mechanism.

This change switches the config to use a throttle (https://esphome.io/components/sensor/#throttle) filter, bringing back constrained, periodic updates (every 10 s)

jcastro commented 4 months ago

thanks for this @dmakovec !

samwiseg0 commented 4 months ago

Looks like this forced change maybe reverted. https://github.com/esphome/esphome/pull/6265