When an amcrest camera was unplugged and then plugged again it was impossible to reconnect to it, since the old auth token was reused while we need to use a new one. In fact, the method that is called every minute to check the camera availability is going to fail always since we're reusing an old token. By forgetting the token (setting it to None) when going offline, we ensure that we'll regenerate it in the next commands thus allowing to reconnect to the camera when it comes back online. |
||
---|---|---|
.. | ||
auth | ||
components | ||
generated | ||
helpers | ||
scripts | ||
util | ||
__init__.py | ||
__main__.py | ||
bootstrap.py | ||
config.py | ||
config_entries.py | ||
const.py | ||
core.py | ||
data_entry_flow.py | ||
exceptions.py | ||
loader.py | ||
monkey_patch.py | ||
package_constraints.txt | ||
requirements.py | ||
setup.py |