Closed rootnegativ1 closed 3 months ago
replacing img.save(path)
with self.coordinator.hass.async_add_executor_job(img.save, path)
seems to work but just seems weird to go through the coordinator to get to hass
.
Maybe I'll try including self.hass=hass
in __init__
. . .
Just noticed the following warning after updating to 2024.6
This seems to be related to https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/
it's an issue with saving the QR code as a file
Need to figure out a way to correctly implement
self.hass.async_add_executor_job()
to handle this