* Add a helper to import modules in the event loop
Replaces the one used for triggers with a more generic helper
that can be reused and uses a future to avoid importing concurrently
* Add a helper to import modules in the event loop
Replaces the one used for triggers with a more generic helper
that can be reused and uses a future to avoid importing concurrently
* coverage
* make sure we do not retry
* coverage
The plan is to deprecate `async_add_job` to reduce the number of job APIs we have to maintain.
See #113179 for additional history.
This one got the smallest change possible since its likely to go away as
well at some point
The plan is to deprecate `async_add_job` to reduce the number of job APIs we have to maintain.
See #113179 for additional history.
`async_add_job` was not being used as expected here
This does not make default_config a requirement, it only preloads
the python code for the integration so it does not have to be loaded
when the import executor is busy. While its a tiny init file, it always
ends up at the end of the line and delays startup
* Avoid pre-importing config_flows if the integration does support migration
Currently we pre-import the config flow module if it exists since
setting up the config entry required comparing the versions found
in the config_flow.py. We can avoid the pre-import if the integration
does not support async_migrate_entry which means we avoid loading
many config flows in memory at startup.
* cover
* fix missing block
* do not call directly
* its too fast now, the test gets more along
* Update homeassistant/loader.py
* components/gardena_bluetooth: Improve avaliability reliability
The available() function incorrectly returns false even though the device
is accessible.
The last_update_success property should correctly indicate if the device
isn't contactable, so we don't need to call async_address_present().
This is confirmed by seeing that no other users are calling
async_address_present() in the available() function.
This commit removes the call to async_address_present() to help fix the
sensor being unavailable when using a ESPHome BLE proxy.
Signed-off-by: Alistair Francis <alistair@alistair23.me>
---------
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Co-authored-by: Joakim Plate <elupus@ecce.se>
There were leaks when
* The component was shutdown
* There was a timeout during the initial device opening
Additionally, the device was not closed/reopened when there was a
timeout reading regular data.
* Fix MJPEG fallback when still image URL is missing with basic auth
I picked up an old DCS-930L (circa 2010) camera to test with
to fix#94877
* Fix MJPEG fallback when still image URL is missing with basic auth
I picked up an old DCS-930L (circa 2010) camera to test with
to fix#94877
* Fix MJPEG fallback when still image URL is missing with basic auth
I picked up an old DCS-930L (circa 2010) camera to test with
to fix#94877
* Fix MJPEG fallback when still image URL is missing with basic auth
I picked up an old DCS-930L (circa 2010) camera to test with
to fix#94877