J. Nick Koston
5b80eb4c3d
Reduce overhead to save the larger registries ( #113462 )
...
We save the device and entity registry to disk quite often, and
the cost of serializing them to the storage can block the event
loop for >100ms. Add a cache to reduce the change the loop is blocked
at an inopportune time at run time. The first write after startup
will still be a little slow but we do have to serialize the
bulk of it at least once as there is no way to avoid this
```
2024-03-14 11:28:19.765 WARNING (MainThread) [homeassistant.helpers.storage] Writing data with data_func: core.device_registry
2024-03-14 11:28:20.020 WARNING (MainThread) [homeassistant.helpers.storage] Writing data with data_func: core.entity_registry
2024-03-14 11:28:20.178 WARNING (MainThread) [asyncio] Executing <TimerHandle cancelled when=2319925.760294916 Store._async_schedule_callback_delayed_write() created at /Users/bdraco/home-assistant/homeassistant/helpers/storage.py:328> took 0.159 seconds
```
2024-03-14 19:54:43 -04:00
J. Nick Koston
28836be3eb
Construct storage data in the executor to avoid blocking the event loop ( #113465 )
...
Construct storage data in the executor
Constructing storage data can be expensive for large files and can block the event
loop. While ideally we optimize the construction of the data, there are some places
we cannot make it any faster. To avoid blocking the loop, the construction of
the data is now done in the executor by running the data_func in the executor.
2024-03-14 11:28:20.178 WARNING (MainThread) [asyncio] Executing <TimerHandle cancelled when=2319925.760294916 Store._async_schedule_callback_delayed_write() created at /Users/bdraco/home-assistant/homeassistant/helpers/storage.py:328> took 0.159 seconds
There is some risk that the data_func is not thread-safe and needs to be run in
the event loop, but I could not find any cases in our existing code where it
would be a problem
2024-03-14 19:53:11 -04:00
Åke Strandberg
f95d649f44
Add icon translations to myuplink ( #111466 )
2024-03-15 00:47:10 +01:00
Pete Sage
7cdec9aeeb
Bump aiooncue to 0.3.7 ( #113451 )
2024-03-15 01:42:13 +02:00
J. Nick Koston
5a62be571d
Bump aiodhcpwatcher to 0.8.2 ( #113466 )
2024-03-14 13:09:58 -10:00
Joost Lekkerkerker and Jan Bouwhuis
ba2d382eb6
Add service icons to Image processing ( #113416 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-03-14 23:49:05 +01:00
Joost Lekkerkerker and Jan Bouwhuis
cd52f0f243
Add service icons to Notify ( #113417 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-03-14 23:48:53 +01:00
jan iversen
7cba34b2e6
Change modbus integration to use async library calls ( #113450 )
2024-03-14 23:19:52 +01:00
wilburCforce
28ef898775
Support lutron transition time and flash for lights ( #109185 )
...
* support transition time for lights
* bug fix and support for FLASH
* updated to flash() to match changes coming in pylutron
* bumped pylutron version in anticipation of next release
* Update manifest.json
* Update requirements_all.txt
* Update requirements_test_all.txt
* Update requirements_test_all.txt
* nits and code improves
2024-03-14 23:07:16 +01:00
Franck Nijhof
221893c1d7
Add aliases support to floor registry WebSocket API ( #113401 )
2024-03-14 23:07:07 +01:00
Jan Bouwhuis
b1c636c886
Fix hassfest icons check for notify and image_processing ( #113446 )
2024-03-14 22:51:18 +01:00
Jan Bouwhuis
3ed7a7166d
Revert "Remove unused test helper mock_area_registry" ( #113453 )
2024-03-14 22:11:44 +01:00
Matthias Lohr
566cbc71a5
Add aroma therapy select entity for tolo integration ( #113442 )
...
* add select entity to allow aroma therapy slot selection
* improved translation readability
2024-03-14 21:03:41 +01:00
Joost Lekkerkerker
3f2a51bcff
Add service icons to Climate ( #113409 )
2024-03-14 20:45:21 +01:00
Christopher Bailey and J. Nick Koston
1ada10299a
Check for EA release channel for UniFi Protect ( #113432 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-03-14 09:07:54 -10:00
J. Nick Koston
5512e8b789
Deprecate async_run_job and async_add_job ( #113260 )
2024-03-14 09:06:55 -10:00
J. Nick Koston
aaac879c83
Fix calling sync api in counter/ffmpeg/device_tracker tests ( #113441 )
2024-03-14 19:34:44 +01:00
Joost Lekkerkerker
2b3f0a9459
Add icon translations to ZHA ( #112368 )
2024-03-14 19:28:54 +01:00
Joost Lekkerkerker
5c59b4d846
Add service icons to Abode ( #113411 )
2024-03-14 19:26:01 +01:00
Joost Lekkerkerker
87767a58fc
Fix alarm control panel icons ( #113413 )
2024-03-14 19:25:33 +01:00
Joost Lekkerkerker
e68c27ec12
Add service icons to Fan ( #113415 )
2024-03-14 19:25:22 +01:00
Joost Lekkerkerker and jbouwh
36123717be
Allow entity platforms without entity_component in icon validation ( #113422 )
...
* Allow entity platforms without entity_component
* Rename variable
---------
Co-authored-by: jbouwh <jan@jbsoft.nl >
2024-03-14 19:10:52 +01:00
Matthias Lohr and Joost Lekkerkerker
7359d66d32
add switch platform for tolo ( #113440 )
...
* upgrade tololib dependency to v1.0.0
* add switch to enable/disable aroma therapy
* aroma therapy and salt bath switch
* Update homeassistant/components/tolo/strings.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com >
* removed key from specific property list, it's required by default
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com >
2024-03-14 19:10:29 +01:00
Franck Nijhof
2aadd643ed
Add floors to service target ( #110850 )
2024-03-14 19:02:23 +01:00
Joost Lekkerkerker
20626947db
Add icon translations to Unifi protect ( #112332 )
2024-03-14 18:43:09 +01:00
Christopher Bailey
2bf6170a6b
Add UniFi Protect service to remove privacy zones ( #111292 )
2024-03-14 07:34:45 -10:00
Joost Lekkerkerker
02521c9da3
Add service icons to ADS ( #113412 )
2024-03-14 17:54:55 +01:00
Thomas55555
f1374503c3
Bump aioautomower to 2024.3.3 ( #113430 )
2024-03-14 17:51:24 +01:00
Joost Lekkerkerker
8a8546579c
Add service icons to Scene ( #113418 )
2024-03-14 17:28:17 +01:00
Jeef
0867ace44a
Bump weatherflow_cloud backing lib v0.2.13 ( #113181 )
...
* bump backing lib - and switch to rest models
* ci fix
2024-03-14 16:55:25 +01:00
Franck Nijhof
f7972ce9b2
2024.3.1 ( #113249 )
2024.3.1
2024-03-14 16:53:07 +01:00
Joost Lekkerkerker
0316681615
Add service icons to Demo ( #113414 )
2024-03-14 16:49:17 +01:00
Joost Lekkerkerker and Diogo Gomes
796d0381cc
Add service icons to Utility meter ( #113419 )
...
* Add service icons to Utility meter
* Add service icons to Utility meter
* Update homeassistant/components/utility_meter/icons.json
Co-authored-by: Diogo Gomes <diogogomes@gmail.com >
* Update homeassistant/components/utility_meter/icons.json
Co-authored-by: Diogo Gomes <diogogomes@gmail.com >
---------
Co-authored-by: Diogo Gomes <diogogomes@gmail.com >
2024-03-14 16:48:13 +01:00
Joost Lekkerkerker
70286b38ec
Fix icon mistakes ( #113420 )
2024-03-14 14:49:20 +01:00
Joost Lekkerkerker
606ee3c379
Enable PERF ruff rules ( #113408 )
2024-03-14 14:10:02 +01:00
Erik Montnemery
a16ea3d7bd
Deprecate the map integration ( #113215 )
...
* Deprecate the map integration
* Revert changes in DashboardsCollection._async_load_data
* Add option to allow single word in dashboard URL
* Update tests
* Translate title
* Add icon
* Improve test coverage
2024-03-14 14:04:41 +01:00
Joost Lekkerkerker
fef2d7ddd4
Add service icons to Persistent Notification ( #113340 )
2024-03-14 14:02:15 +01:00
Joost Lekkerkerker
020b75d5de
Add service icons to Blackbird ( #113280 )
2024-03-14 14:02:01 +01:00
Joost Lekkerkerker
21a2871014
Add service icons to Amcrest ( #113276 )
2024-03-14 14:01:51 +01:00
Joost Lekkerkerker
1191032b08
Add service icons to REST ( #113346 )
2024-03-14 14:01:41 +01:00
Joost Lekkerkerker
774b2800bf
Add service icons to Group ( #113302 )
2024-03-14 14:01:30 +01:00
Joost Lekkerkerker
d81053a695
Add service icons to History Stats ( #113306 )
2024-03-14 14:01:20 +01:00
Joost Lekkerkerker
467a6f3ed0
Add service icons to Bluetooth Tracker ( #113282 )
2024-03-14 14:01:13 +01:00
Joost Lekkerkerker
265ecc141d
Add service icons to Bayesian ( #113278 )
2024-03-14 14:01:04 +01:00
Joost Lekkerkerker
d10a244eaa
Add service icons to Backup ( #113277 )
2024-03-14 14:00:57 +01:00
Joost Lekkerkerker
20c2bac32e
Add service icons to Modbus ( #113332 )
2024-03-14 14:00:50 +01:00
Joost Lekkerkerker and Jan Bouwhuis
09be817f76
Add service icons to Channels ( #113284 )
...
* Add service icons to Channels
* Update homeassistant/components/channels/icons.json
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
---------
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-03-14 13:56:02 +01:00
Joost Lekkerkerker
645e780445
Add service icons to Advantage air ( #113272 )
2024-03-14 13:55:47 +01:00
Matthias Lohr
6a1913b372
Bump tololib to 1.1.0 ( #113268 )
...
* upgrade tololib dependency to v1.0.0
* use latest available patch version
* fixed tolo tests
* fixed test cases
2024-03-14 13:55:16 +01:00
Joost Lekkerkerker
1fd447f65b
Add service icons to Agent DVR ( #113273 )
2024-03-14 13:54:45 +01:00