Closed Phype closed 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.
Thank you!
setup_platform()
is only called when the integration is installed or when Home Assistant is restarting.
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 storeclient.gettoken()
somewhere and pass it to the constructor.