Ekman / home-assistant-pure-i9

Electrolux Pure i9 robot vacuum integration for Home Assistant.
MIT License
25 stars 5 forks source link

Switch to v2 (Wellbeing) API #23

Closed Phype closed 2 years ago

Phype commented 2 years ago

See https://github.com/Ekman/home-assistant-pure-i9/issues/22 I just tested this, it seems to work, but i haven't let it run long enough to test it properly. One thing i'm unsure about is how often setup_platform() is called - When this only happens when home assistant is restarted, this should be fine, otherwise we should store client.gettoken() somewhere and pass it to the constructor.

Phype commented 2 years ago

Also, as said https://github.com/Ekman/home-assistant-pure-i9/pull/21 caused issues for me, so i based my PR on the commit before that one.

Ekman commented 2 years ago

Thank you!

setup_platform() is only called when the integration is installed or when Home Assistant is restarting.