Closed edenhaus closed 2 weeks ago
I made the change at https://github.com/Tasshack/dreame-vacuum/blob/dev/custom_components/dreame_vacuum/camera.py#L478 because I'm using the beta.
However now I have an issue with _access_token_update_counter
:
Logger: homeassistant.components.camera
Source: helpers/entity_platform.py:365
integration: Camera (documentation, issues)
First occurred: 23:06:11 (1 occurrences)
Last logged: 23:06:11
Error while setting up dreame_vacuum platform for camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/dreame_vacuum/camera.py", line 369, in async_setup_entry
update_map_cameras()
File "/config/custom_components/dreame_vacuum/camera.py", line 405, in async_update_map_cameras
DreameVacuumCameraEntity(
File "/config/custom_components/dreame_vacuum/camera.py", line 479, in __init__
Camera.__init__(self)
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 483, in __init__
self.async_update_token()
File "/config/custom_components/dreame_vacuum/camera.py", line 646, in async_update_token
if self._access_token_update_counter:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DreameVacuumCameraEntity' object has no attribute '_access_token_update_counter'
This not how I like to solve this issue.
Fixes https://github.com/Tasshack/dreame-vacuum/issues/778