Closed bakerkj closed 6 months ago
Could this be because self._run_task
is being initilzied before self._device_modifications
?
class DeviceTools:
...
def __init__(self, hass: HomeAssistant, logger: logging.Logger) -> None:
...
self._run_task = hass.async_create_background_task(self.async_run(), DOMAIN)
self._device_modifications: dict[str, DeviceModification] = {}
....
`
Yes, could be. Maybe you could try switching those statements and if it works open a PR?
Will do! I'll keep you posted.
@EuleMitKeule, I made the change. I have rebooted twice without seeing the same error again. I think the change is safe to merge as is, but I am happy to run with it this way awhile longer, and reboot a few more times and report back if you prefer.
The change makes sense to me, I merged it and published a new release. Thank you!
I am running home assistant 2024.5 with device tools 1.8.2 and on startup I received the following traceback.