J. Nick Koston
bb12d2e865
Avoid creating tasks in homeassistant_alerts when the debouncer will not fire ( #113580 )
2024-03-16 16:20:06 -04:00
J. Nick Koston
4174d88ad7
Add a guard to handle unhashable platforms in config ( #113607 )
...
Someone might set the platform to [fitbit] instead of fitbit
I have not seen anyone do this, but its good to guard against
it
2024-03-16 16:19:07 -04:00
Jan Bouwhuis
5dccd8204c
Freeze time on profile test ( #113618 )
2024-03-16 21:16:18 +01:00
Sid
6ee273a548
Clean up unneeded ruff noqa directives ( #113616 )
2024-03-16 09:48:37 -10:00
Sid
ccd2e989c3
Enable ruff RUF005 and fix occurrences ( #113589 )
2024-03-16 07:37:20 -10:00
Massimo Savazzi
2a5c85a020
Add JVC Projector Sensors ( #108949 )
...
* Add JVC Projector Sensors - Power Status, Input
* Removed commented line, removed name in icons.json
* fixed icons.json file
* fixed tests
* Update homeassistant/components/jvc_projector/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fixed as requested
* Fixed code as requested
* added fixes
* Fixed sensor creation
* fixed const
* fixed icons
* Added test for both sensors
* Added ha state stest
* fixed commented line and removed useless ones
* Changed time FAST - SLOW to be more responsive
* Rolled back to previous values 6/60
* Update sensor.py
removed off
* Update icons.json
* Removed the Input Sensor entity
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Updated unique id of sensor
Co-authored-by: Steve Easley <steve.easley@gmail.com>
* Added translation and string for Power Status
* Update homeassistant/components/jvc_projector/strings.json
Co-authored-by: Steve Easley <steve.easley@gmail.com>
* Update homeassistant/components/jvc_projector/strings.json
Co-authored-by: Steve Easley <steve.easley@gmail.com>
* Update strings.json
* Update strings.json
added missing ,
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Steve Easley <steve.easley@gmail.com>
2024-03-16 16:52:51 +01:00
Maciej Bieniek
6191b25563
Catch `TimeoutError` in `Brother` config flow ( #113593 )
...
* Catch TimeoutError in Brother config flow
* Update tests
* Remove unnecessary parentheses
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-16 16:01:48 +01:00
J. Nick Koston
ef0c17749f
Use async_create_task in recorder init tests ( #113586 )
2024-03-16 15:40:50 +01:00
Shay Levy
d17e397455
Ignore Shelly block update with cfgChanged None ( #113587 )
2024-03-16 16:18:41 +02:00
Shay Levy
a7fd1c278c
Shelly config flow test wait for tasks to finish ( #113588 )
2024-03-16 16:18:13 +02:00
Brett Adams
219cb7a788
Add additional sensors to Teslemetry ( #112555 )
...
* Add more sensors
* Fix coverage
* Dont do this rename yet
* Fix case
* Update snapshot
* Add icons
* Remove unused icons
* Update snapshot
* Remove last_value logic from TimeSensor
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Update constant case
* Remove useless test
* Add refresh test back
* Add assertion to post coordinator refresh
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-03-16 11:54:37 +01:00
Sid
470ef554d7
Fix freedompro tests for ruff B018 ( #113583 )
2024-03-16 00:03:25 -10:00
Sid
dd3101e161
Fix unifiprotect tests for ruff B018 ( #113584 )
2024-03-16 00:01:24 -10:00
J. Nick Koston
eb90c9a548
Reduce bottlenecks in bootstrap by ordering the setup of integrations ( #113570 )
2024-03-15 22:38:06 -10:00
Sid
27e844e3bf
Add ruff B005, B015, B032 and fix occurrences ( #113543 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-15 17:48:37 -10:00
Jan Bouwhuis
6e84dbde35
Fix lingering hassio issues test ( #113569 )
2024-03-15 15:10:24 -10:00
J. Nick Koston
af06e03b71
Add profiler set_asyncio_debug service ( #113447 )
...
* Add profiler set_asyncio_debug service
Currently when a user has a problem with there event loop being blocked
the simplest way to enable asyncio debug is to add `debugpy:` to
`configuration.yaml`, however this approach slows the system which
makes the report less useful and harder to track down the problem.
We need a lightweight way to enable debug mode so users can report
problems with the event loop being blocked, and we have a better
chance of finding the source without side effects
* logging
* logging
* logging
* comments
* fix
* icon
* only if enabled
* coverage
2024-03-15 20:49:35 -04:00
On Freund
b644c03fa7
Send keep-alive frames in image proxy stream ( #113542 )
2024-03-15 14:00:33 -10:00
J. Nick Koston
88f04bb3b4
Avoid calling entry.async_migrate in sonarr tests ( #113557 )
...
We should setup the the config entry instead of calling the
migrator directly
This fix was reverted out in #113553
2024-03-15 23:33:48 +01:00
J. Nick Koston
03bb791080
Add missing async_block_till_done to jellyfin test_invalid_auth test ( #113556 )
...
This fix was reverted out in #113553
2024-03-15 23:31:55 +01:00
G Johansson
e8de1a7031
Revert "Avoid pre-importing config_flows if the integration does not … ( #113553 )
...
Revert "Avoid pre-importing config_flows if the integration does not support …"
This reverts commit 9940f51b95
.
2024-03-15 23:15:36 +01:00
J. Nick Koston
77a94ea515
Speed up loading sun ( #113544 )
...
* Speed up loading sun
* Speed up loading sun
* Speed up loading sun
* adjust
* tweak
2024-03-15 23:01:49 +01:00
Sid
d120993477
fix homekit test asserts ( #113549 )
2024-03-15 22:02:18 +01:00
Sid
b261f124d6
fix mqtt siren test asserts ( #113550 )
2024-03-15 21:59:30 +01:00
Robert Svensson
3ba29c361a
Remove old update of group unique id in deCONZ ( #112533 )
2024-03-15 21:09:44 +02:00
Robert Svensson
9c2c7f1a45
Remove old update of number unique id in deCONZ ( #113524 )
2024-03-15 21:08:18 +02:00
Robert Svensson
e90388afd1
Remove old update of sensor unique id in deCONZ ( #113527 )
2024-03-15 21:06:09 +02:00
J. Nick Koston
b7f7bed46c
Import and create pyudev for usb in the executor ( #113478 )
2024-03-15 09:05:18 -10:00
jan iversen
02d4bf007d
Do not allow modbus config without entities ( #113516 )
2024-03-15 19:49:29 +01:00
Robert Svensson
5b5ff92a05
Support configuring Axis to use HTTPS ( #113271 )
2024-03-15 18:58:49 +01:00
Joost Lekkerkerker
be7c4295dc
Fix MyUplink tests ( #113534 )
2024-03-15 18:26:28 +01:00
Thomas55555
66aa2c038a
Freeze timezone in bmw_connected_drive tests ( #113533 )
...
Freeze timezone in bmw_connected_drive
2024-03-15 18:22:17 +01:00
dontinelli
98132d1cd3
Add Fyta integration ( #110816 )
...
* Initial commit for fyta integration
* Update __init__.py
Delete BinarySensor for first PR
* Update __init__.py
Rewind wrongful deletion of comma
* Delete homeassistant/components/fyta/binary_sensor.py
Delete binary_sensor for first pr of integration
* Update manifest.json
Updated requirement to new version of fyta_cli 0.2.1, where bug in import of modules has been resolved.
* Update requirements_test_all.txt
adjust to updated manifest
* Update requirements_all.txt
adjust to updated manifest
* Update test_config_flow.py
* Update config_flow.py
update file to correct error with _entry attribute
* Fyta integration - update initial PR based on review in initial PR #110816 (#2 )
* adjustments to pass test for config_flow
* backport of changes in intitial PR to dev
* update text_config_flow
* changes based on review in initial PR #110816
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
* Update homeassistant/components/fyta/manifest.json
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
* Adjustments based on PR-commet of Feb 19 (#3 )
* add test for config_flow.validate_input
* update based on pr review
* update based on pr review
* further refinings based on PR review
* Update tests/components/fyta/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update test_config_flow.py
Update tests based on PR comment
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* add handling and test for duplicate entry
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update test_config_flow.py
parametrize test for exceptions
* Update config_flow.py
Move _async_abort_entries_match, add arguments
* Update coordinator.py
* Update typing in coordinator.py
* Update coordinator.py
update typing
* Update coordinator.py
corrected typo
* Update coordinator.py
* Update entity.py
* Update sensor.py
* Update icons.json
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update entity.py
* Update test_config_flow.py
* Update config_flow.py (change FlowResult to ConfigFlowResult)
* Update config_flow.py
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update coordinator.py
* Update config_flow.py (typing FlowResult -> ConfigFlowResult)
* Update config_flow.py
* Aktualisieren von config_flow.py
* remove coordinator entities
* Update strings.json
remove plant_number
* Update icons.json
remove plant_number
* Update manifest.json
Update requirement to latest fyta_cli version
* Update requirements_all.txt
* Update requirements_test_all.txt
* Update homeassistant/components/fyta/sensor.py
* Update homeassistant/components/fyta/sensor.py
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/fyta/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/fyta/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* move test-helpers into conftest.py, adjust import of coordinator.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-03-15 18:13:35 +01:00
soonsouth
cfc2f17f35
Remove repetitive words in comments and docstrings ( #113529 )
...
chore: remove repetitive words
Signed-off-by: soonsouth <cuibuwei@163.com>
2024-03-15 18:11:12 +01:00
cosimomeli
4107cd6ad8
Add Ring Intercom open door button ( #113514 )
...
* Add button
* Make Ruff happy
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fix doc string
* Format
* Update tests/components/ring/test_button.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-15 15:31:51 +01:00
Erwin Douna
1ff049cc66
Add diagnostics platform to Fastdotcom ( #111525 )
2024-03-15 14:42:07 +01:00
Åke Strandberg
eb1f37ea9b
Filter out irrelevant entities on SMO20 devices in myuplink ( #113493 )
2024-03-15 14:06:10 +01:00
J. Nick Koston
c69ab425c5
Speed up ffmpeg setup ( #113496 )
...
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* adjust
* adjust
* twea
* Update homeassistant/components/ffmpeg/__init__.py
* forgot about the mock in conftest for comps
2024-03-15 09:05:42 -04:00
Franck Nijhof
0e2775667d
Add category registry ( #110897 )
...
* Add category registry
* Add entity registry support
* Update homeassistant/components/config/entity_registry.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use ulid instead
* Add tests for adding same name in different scopes
* Handle keyerror on update
* Lookup tweak
* Omit categories from entity registry snapshots
* Use base registry
* Update snapshots
* Update snapshots
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-15 13:25:16 +01:00
Franck Nijhof
436c83e8a7
Add theme color support to labels ( #113404 )
2024-03-15 13:22:06 +01:00
cosimomeli
360f7dea75
Add Ring Intercom support ( #109819 )
...
* Add button entity
* Add support for Ring intercom ("other" device type)
* description
* format
* - Tests
- Fallback when intercom devices arent inside response
* Fix ring button
* Update library
* Fix button after merge
* Move names to strings.json
* Remove button entity_category
* Add wifi sensors to other
* Add last_ sensors to other
* Fix tests
* Add button test
* Add new sensors tests
* Revert "Add last_ sensors to other"
This reverts commit 5c03bba5a1
.
* Update library
* Revert "Revert "Add last_ sensors to other""
This reverts commit 27631978d0
.
* Fix tests
* Remove default list for other
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
* Copy mock to conftest
* Fix history test
* Change time skip
* Remove button
* Fix history test
---------
Co-authored-by: Martin Pham <tuyentq2009@gmail.com>
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
2024-03-15 12:59:36 +01:00
J. Nick Koston
9cc0006b92
Ensure TurboJPEG is imported in the executor ( #113504 )
...
The import was too late and it eneded up being imported
in the event loop
2024-03-15 12:23:53 +01:00
dougiteixeira
13cd6eb00e
Add icon translations to Moon ( #111386 )
2024-03-15 12:12:03 +01:00
Åke Strandberg
86607d2bbb
Create more relevant names for myuplink DeviceInfo ( #111502 )
2024-03-15 12:11:13 +01:00
Robert Svensson
e41133e9f0
Remove old update unique id function from deCONZ binary sensor ( #112536 )
2024-03-15 12:05:45 +01:00
Thomas55555
309f554336
Address late review on adding an error sensor to Husqvarna Automower ( #113242 )
2024-03-15 12:04:33 +01:00
On Freund
99e29b75cc
Revert setting communication delay in Risco init ( #113497 )
2024-03-15 11:42:53 +01:00
Erik Montnemery
dd9fdac51e
Remove unused tts fixture ( #113480 )
2024-03-14 22:25:10 -10:00
J. Nick Koston
bdede0e0da
Start script runs eagerly ( #113190 )
2024-03-14 16:53:26 -10:00
J. Nick Koston
3528cc86d7
Fix delayed registry check to only using the short delay at running ( #113471 )
2024-03-14 15:11:09 -10:00
J. Nick Koston
052d7d1e19
Fix scene integration doing blocking I/O in the event loop to import platforms ( #113391 )
2024-03-14 14:56:57 -10:00
J. Nick Koston
e293afe46e
Bump aiodhcpwatcher to 1.0.0 ( #113469 )
2024-03-14 14:16:19 -10: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
jan iversen
7cba34b2e6
Change modbus integration to use async library calls ( #113450 )
2024-03-14 23:19:52 +01:00
Franck Nijhof
221893c1d7
Add aliases support to floor registry WebSocket API ( #113401 )
2024-03-14 23:07:07 +01:00
Jan Bouwhuis
3ed7a7166d
Revert "Remove unused test helper mock_area_registry" ( #113453 )
2024-03-14 22:11:44 +01:00
Christopher Bailey
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
Franck Nijhof
2aadd643ed
Add floors to service target ( #110850 )
2024-03-14 19:02:23 +01:00
Christopher Bailey
2bf6170a6b
Add UniFi Protect service to remove privacy zones ( #111292 )
2024-03-14 07:34:45 -10:00
Thomas55555
f1374503c3
Bump aioautomower to 2024.3.3 ( #113430 )
2024-03-14 17:51:24 +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
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
Franck Nijhof
064f96f8fa
Add floor support to areas WebSocket API ( #113402 )
2024-03-14 12:55:31 +01:00
jan iversen
7696973932
Move modbus check_config to setup, to have access to hass ( #112828 )
2024-03-14 12:54:01 +01:00
Mike Degatano
5a25349cf7
Supervisor issues update retries on failure ( #113373 )
2024-03-14 10:55:04 +01:00
Mike Degatano
6d903300be
Apply suggestion failures fail supervisor repair ( #113372 )
2024-03-14 10:53:55 +01:00
J. Nick Koston
4341b21a61
Migrate auth to use async_import_module to avoid blocking I/O in the event loop ( #113387 )
2024-03-14 10:44:36 +01:00
Steven B
4aec48d358
Update ring integration imports ( #113397 )
...
Update ring imports for patching where library is created
2024-03-14 10:44:17 +01:00
Erik Montnemery
9eea786411
Remove old migration from lovelace ( #113388 )
2024-03-14 10:43:55 +01:00
Joost Lekkerkerker
7ae852e5ed
Enable ISC ruff rule ( #113270 )
2024-03-14 10:43:03 +01:00
Joost Lekkerkerker
05172d8e4d
Improve loops and lists ( #113269 )
...
* Enable PERF
* Enable PERF rule
* Enable PERF rule
* Don't enable flag yet
2024-03-14 10:22:20 +01:00
Chris Talkington
fe99d80054
Add diagnostics for IPP ( #113205 )
2024-03-14 00:44:07 -05:00
J. Nick Koston
c1f5c7c4b7
Remove usage of async_add_job in tests ( #113259 )
2024-03-13 19:33:33 -10:00
J. Nick Koston
cfe14bca8f
Add a helper to import modules from the event loop ( #113169 )
...
* 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
2024-03-14 00:26:33 -04:00
J. Nick Koston
9940f51b95
Avoid pre-importing config_flows if the integration does not support migration ( #113369 )
...
* 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
2024-03-14 00:13:40 -04:00
Robert Svensson
932e073fee
Split out deCONZ config model ( #112851 )
...
* Add separate deCONZ config class
* Use config in get_deconz_api
2024-03-13 22:49:49 +01:00
Joost Lekkerkerker
77917506bb
Improve lists in integrations [R-S] ( #113233 )
...
* Improve lists in integrations [R-S]
* Fix
* Fix
2024-03-13 21:55:00 +01:00
Joost Lekkerkerker
e6a692f354
Improve lists in integrations [N-O] ( #113231 )
2024-03-13 21:51:38 +01:00
Joost Lekkerkerker
595d07f1c6
Improve lists in integrations [L-M] ( #113227 )
...
* Improve lists in integrations [L-M]
* Update homeassistant/components/mailbox/__init__.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* Fix
---------
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-03-13 21:28:21 +01:00
Jonny Bergdahl
64b42a3651
Fix Twitch auth token refresh ( #112833 )
...
* Fix for expired token
* Add auth token refresh.
* Eliminate extra auth call
* Fixed mock client
---------
Co-authored-by: Jonny Bergdahl <bergdahl@users.noreply.github.com>
2024-03-13 20:16:00 +01:00
Joost Lekkerkerker
a136638719
Rework Melissa tests ( #113241 )
2024-03-13 19:54:52 +01:00
Joost Lekkerkerker
49fc59548a
Improve lists in integrations [V-W] ( #113252 )
2024-03-13 19:38:04 +01:00
Joost Lekkerkerker
b34302e51b
Add icon translations to Roku ( #112214 )
...
* Add icon translations to Roku
* Add icon translations to Roku
* Fix
* Fix
2024-03-13 19:06:16 +01:00
Em
7c4747bb02
Parameterize some tests in generic_thermostat ( #105643 )
...
* test(generic_thermostat): parameterize some tests
* refactor: improvements following review
2024-03-13 18:23:52 +01:00
Joost Lekkerkerker
96cebdf096
Improve lists in integrations [T-U] ( #113243 )
2024-03-13 17:54:46 +01:00
Joost Lekkerkerker
761933acfe
Improve lists in integrations [G-H] ( #113168 )
2024-03-13 17:25:27 +01:00
Jan-Philipp Benecke
d4ae4a9cd0
Deprecate `homeassistant.components.is_on` function ( #111891 )
2024-03-13 17:21:00 +01:00
Joost Lekkerkerker
7e0aac3feb
Improve lists in integrations [I-K] ( #113221 )
2024-03-13 16:56:33 +01:00
Diogo Gomes
669dd36daf
Add diagnostics platform to IPMA ( #105697 )
2024-03-13 12:07:28 +01:00
J. Nick Koston
a65908becc
Migrate harmony to use async_run_hass_job ( #113178 )
2024-03-13 12:02:07 +01:00
J. Nick Koston
bbef3f7f68
Only extract traceback once in system_log ( #113201 )
2024-03-13 11:58:34 +01:00
Stefan Agner
99eaa07f6f
Add message from Bad Request errors to HassioAPIError ( #113144 )
...
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2024-03-13 11:29:39 +01:00
J. Nick Koston
d6f1405874
Migrate one time listeners to use async_run_hass_job ( #113179 )
2024-03-13 11:06:30 +01:00
Jan Bouwhuis
488dae43d4
Improve lists for MQTT integration ( #113184 )
...
* Improve lists for MQTT integration
* Extra diagnostics tests
* Revert changes where the original version was probably faster
* Revert change to gather and await in series
2024-03-13 11:04:59 +01:00
Jesse Hills
3d7d3d263d
ESPHome: Add Date Entity support ( #112475 )
...
* ESPHome: Add Date Entity support
* Formatting
* Add missing state test
2024-03-13 08:02:52 +01:00
Jesse Hills
a2a8a8f119
ESPHome: Catch and re-raise client library errors as HomeAssistantErrors ( #113026 )
2024-03-12 18:06:25 -10:00
Ståle Storø Hauknes
d2bd68ba30
Bump airthings_ble to 0.7.1 ( #113172 )
...
Co-authored-by: Ståle Storø Hauknes <LaStrada@users.noreply.github.com>
2024-03-12 15:48:36 -10:00
TheJulianJES
9ec0e097ef
Remove ZHA IasZone sensor migration ( #111893 )
2024-03-12 18:18:20 -04:00
J. Nick Koston
1cceaaf193
Small improvement to test run time ( #113175 )
2024-03-12 23:01:39 +01:00
On Freund
b9837a561b
Use friendly name for camera media source ( #110882 )
2024-03-12 21:20:14 +01:00
Pete Sage
46ce438b6d
Sonos reduce test time ( #111688 )
2024-03-12 21:14:27 +01:00
Brett Adams
1dc3582778
Add icons to Teslemetry ( #112546 )
2024-03-12 21:06:09 +01:00
Robert Svensson
c761b825ec
Fix Axis unique ID ( #112132 )
2024-03-12 21:01:20 +01:00
Erik Montnemery
2cdf6b9937
Add binary_sensor to homeworks ( #112418 )
...
* Add binary_sensor to homeworks
* Update tests
2024-03-12 19:25:27 +01:00
Joost Lekkerkerker
f9b2c35418
Add icon translations to Lametric ( #111854 )
2024-03-12 18:52:58 +01:00
J. Nick Koston
c948392ebc
Make Bluetooth active coordinator debouncers run tasks in the background ( #113129 )
2024-03-12 07:43:43 -10:00
Scott K Logan
eb81599400
Fix some handle leaks in rainforest_raven ( #113035 )
...
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.
2024-03-12 12:43:25 -04:00
Maciej Bieniek
f01095fb66
Fix availability for GIOS index sensors ( #113021 )
...
* Fix availability for index sensors
* Improve test_availability()
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-12 12:41:16 -04:00
Steven Looman
cd4e8707ea
Improve discovering upnp/igd device by always using the SSDP-discovery for the Unique Device Name ( #111487 )
...
* Always use the UDN found in the SSDP discovery, instead of the device description
* Ensure existing DeviceEntries are still matched
2024-03-12 12:38:09 -04:00
Jan-Philipp Benecke
3b1ab6436d
Remove deprecated `hass.components` usage in service tests ( #111883 )
2024-03-12 17:27:44 +01:00
Steven B
5e530fc42e
Add motion detection enable/disable to ring camera platform ( #108789 )
...
* Add motion detection enable/disable to ring camera platform
* Write ha state directly
Co-authored-by: J. Nick Koston <nick@koston.org>
* Parametrize on off state tests
* Add tests for errors on setting motion detection
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-12 16:05:14 +01:00
Michael Hansen
556855f54e
Add device_id to sentence trigger and external conversation APIs ( #113094 )
...
* Add device_id to sentence trigger and external conversation APIs
* Remove device_id from external API
* Update tests/components/conversation/snapshots/test_init.ambr
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-03-12 08:50:06 -04:00
J. Nick Koston
120525e94f
Add the ability to create Debouncer tasks as background tasks ( #113128 )
...
* Add the ability to Debouncer tasks in the background
This is a more general solution as a followup to
https://github.com/home-assistant/core/pull/112652#discussion_r1517159607
* Add the ability to Debouncer tasks in the background
This is a more general solution as a followup to
https://github.com/home-assistant/core/pull/112652#discussion_r1517159607
* fix
2024-03-12 08:41:12 -04:00
Jan Bouwhuis
e28d4f0eae
Validate state_class with last_reset_value_template for mqtt sensors ( #113099 )
2024-03-12 09:08:03 +01:00
Jan Bouwhuis
012291a1f3
Fix google_asssistant sensor state reporting ( #112838 )
...
* Fix post google_assistant sensor values as float not string
* Fix aqi reporting and improve tests
* Fix _air_quality_description_for_aqi and test
2024-03-12 09:07:20 +01:00
Erik Montnemery
d039bd654b
Add reconfigure flow to homeworks ( #112419 )
...
* Add reconfigure flow to homeworks
* Fix tests
* Use async_update_reload_and_abort helper
* Try to fix test shutdown
2024-03-12 08:47:44 +01:00
Thomas55555
4f4391bd09
Add missing device info to Husqvarna Automower ( #113090 )
...
* Add missing DeviceInfo to Husqvarna Automower
* add a test
* Adress review
* Update homeassistant/components/husqvarna_automower/entity.py
* fix url
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-12 08:25:35 +01:00
definitio
6f19744469
Add A6 family code for DS2438 1-Wire sensor ( #112844 )
...
* Add A6 family code for DS2438
* Add tests
* Fix switch
* Apply code review suggestion
* Add comments
2024-03-12 08:06:02 +01:00
J. Nick Koston
3f72fae60b
Migrate remaining call in check_config helper to use async_get_component ( #113123 )
2024-03-11 15:56:24 -10:00
J. Nick Koston
17b202d8cf
Await discovery_function in the DiscoveryFlowHandler instead of wrapping it in a task ( #113115 )
...
Await discovery_function in the DiscoveryFlowHandler instead of wrapping
This function was always a coro so it can be awaited
directly instead of wrapping it in add_job
2024-03-11 21:37:03 -04:00
J. Nick Koston
6e59d1cb29
Migrate homekit to use async_at_started ( #113102 )
2024-03-11 20:08:02 -04:00
J. Nick Koston
620433a79d
Run coroutines as eager tasks in async_run_hass_job ( #111683 )
...
* Run coroutines as eager tasks in async_run_hass_job
Note that this does not change async_add_hass_job
Do not merge this. For test run only
* Phase out periodic tasks
* false by default or some tests will block forever, will need to fix each one manually
* kwarg works
* kwarg works
* kwarg works
* fixes
* fix more tests
* fix more tests
* fix lifx
* opensky
* pvpc_hourly_pricing
* adjust more
* adjust more
* smarttub
* adjust more
* adjust more
* adjust more
* adjust more
* adjust
* no eager executor
* zha
* qnap_qsw
* fix more
* fix fix
* docs
* its a wrapper now
* add more coverage
* coverage
* cover all combos
* more fixes
* more fixes
* more fixes
* remaining issues are legit bugs in tests
* make tplink test more predictable
* more fixes
* feedreader
* grind out some more
* make test race safe
* limit first scope to triggers
* one more
* Start tasks eagerly in for async_at_start(ed)
A few of these can avoid being scheduled on the loop
during startup
* fix cloud
* Revert "fix cloud"
This reverts commit 5eb3ce695d
.
* fix test to do what start does
* flip flag
* flip flag
* Fix here_travel_time creating many refresh requests at startup
- Each entity would try to refresh the coordinator which
created many tasks. Move the refresh to a single
async_at_started
- The tests fired the EVENT_HOMEASSISTANT_START event
but the code used async_at_started which only worked
because the tests did not set CoreState to not_running
* fix azure
* remove kw
* remove kw
* rip
* cover
* more rips
* more rips
* more rips
2024-03-11 20:05:08 -04:00
J. Nick Koston
53c3e27ed9
Add support for run_immediately to async_listen_once ( #113020 )
2024-03-11 13:51:03 -10:00
J. Nick Koston
6ff8d7d2b9
Make sonos ssdp discovery callback a callback function ( #113107 )
2024-03-11 13:50:04 -10:00
J. Nick Koston
77cdecf0f1
Migrate async_run_job to use eager_start for tasks ( #113011 )
2024-03-11 11:30:46 -10:00
J. Nick Koston
e29b012eba
Fix failing google diagnostics test ( #113095 )
2024-03-11 11:05:49 -10:00
J. Nick Koston
324266a4e6
Fix race in script stop that could cause async_stop to hang forever ( #113089 )
2024-03-11 10:48:11 -10:00
Steven B
eff0aac586
Ensure that the ring integration always raises HomeAssistantError for user actions ( #109893 )
...
* Wrap library exceptions in HomeAssistantErrors
* Remove commented
* Update post review
* Update post second review
2024-03-11 20:23:49 +01:00
Paulus Schoutsen
145657dc21
Only load services.yaml for integrations that have it ( #112732 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-11 19:05:32 +01:00
Joost Lekkerkerker
c75342bd9a
Improve lists in integrations [C-D] ( #113072 )
2024-03-11 18:58:35 +01:00
Joost Lekkerkerker
690ba103ed
Improve lists in integrations [A] ( #113006 )
...
* Use list comprehension [A]
* Use list comprehension [A]
* Update homeassistant/components/aws/notify.py
2024-03-11 16:17:44 +01:00
Joost Lekkerkerker
bf40b33117
Remove fixtures from global fixtures folder ( #113060 )
...
Remove fixtures
2024-03-11 10:19:54 -04:00
J. Nick Koston
d939c48b4a
Fix here_travel_time creating many refresh requests at startup ( #113041 )
2024-03-11 15:11:33 +01:00
Marcel van der Veldt
0eb1adccf8
Fix for Hue not applying effect in scene ( #113057 )
2024-03-11 15:08:00 +01:00
Joost Lekkerkerker
2792a5f016
Enable even more SIM ruff rules ( #113017 )
...
* SIM202 SIM211 SIM220 SIM221 SIM222 SIM223
* SIM910 SIM911
* SIM
* Update homeassistant/components/mqtt/siren.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
* Update homeassistant/components/mqtt/siren.py
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
---------
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-03-11 14:23:52 +01:00
Steven B
48cb09a4a8
Prepare ring update service for deprecation ( #108781 )
...
* Prepare ring update service for deprecation
* Update service removal release number
2024-03-11 13:42:52 +01:00
Joost Lekkerkerker
f8d1232598
Move HomematicIP Cloud fixture to integration test ( #112987 )
...
* Move HomematicIP Cloud fixture to integration test
* Update tests/components/homematicip_cloud/helper.py
* Update tests/components/homematicip_cloud/helper.py
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-03-11 13:26:44 +01:00
Shai Ungar
3c06fbbd82
Add ConfigFlow for seventeentrack integration ( #111196 )
...
* Add config flow to 17Track
* Import config from configuration.yaml
* 1. move import to async_setup_platform
2. add USERNAME (email) in title for uniqueness
* Add options flow
* Add tests
* Add CONF_SHOW_ARCHIVED and CONF_SHOW_DELIVERED to data from options
* Update homeassistant/components/seventeentrack/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/manifest.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/config_flow.py
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* Update homeassistant/components/seventeentrack/__init__.py
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* 1. Added repair issues
2. _async_validate_input inlined
3. added unique id
4. take default scan interval
* fix
* 1. move async_create_issue to async_setup_platform
2. fix tests
3. black + pylint
* combine USER_SCHEMA and OPTIONS_SCHEMA
* small fix
* remove async_setup
* fix tests and add 100% coverage
* 1. remove CONFIG_SCHEMA
2. remove error log
3. add issue with more description when import issues happen
4. some linting
* Update homeassistant/components/seventeentrack/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* use freezer
use AsyncMock
fix tests
* add test_flow_fails
parametrize tests where needed
test_import_flow_already_configured - where a unique id already configured (abort flow)
* lint
* fix rebase issues
* some more fix
* 17Track revert tests and put them in a different PR
* adapt tests to MockConfigEntry
* Update tests/components/seventeentrack/test_sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/seventeentrack/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/seventeentrack/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 1. create fixture for config and another with options
2. set options with default values
3. remove CONFIG_SCHEMA
* Update tests/components/seventeentrack/conftest.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/seventeentrack/conftest.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* 1. get options from import data and default if not present
2. rename mock_config_entry_no_options -> mock_config_entry_with_default_options
* move ACCOUNT_ID to mock_seventeentrack_api.return_value.profile.account_id
* Apply suggestions from code review
* Update tests/components/seventeentrack/test_config_flow.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
2024-03-11 12:47:39 +01:00
Marcel van der Veldt
a7a30581fc
Fix adding Hue bridge manually by IP ( #113055 )
2024-03-11 12:35:41 +01:00
Sid
c60aed3012
Bump webmin-xmlrpc to 0.0.2 ( #113004 )
2024-03-11 11:44:21 +01:00
Joost Lekkerkerker
3b0b729557
Remove YAML configuration from WAQI ( #113027 )
2024-03-11 11:41:49 +01:00
Joost Lekkerkerker
2349ce1abd
Move yandex transport fixture to integration test ( #112988 )
...
* Move yandex transport fixture to integration test
* Update tests/components/yandex_transport/test_sensor.py
* Ran ruff
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-03-11 11:28:30 +01:00
Brett Adams
6d440e36ad
Add tests for Aussie Broadband diagnostics ( #113049 )
...
* Add tests for diag
* Fix docstring
* Spelling
2024-03-11 10:54:12 +01:00
Simone Chemelli
4095de0566
Allow Shelly CoAP to honour default network adapter ( #110997 )
...
* Allow Shelly CoAP to honor default network adapter
* apply review comment
* 1 more debug log line
* adapt code to library changes
* test
* improve test
* one more test
2024-03-11 09:52:15 +01:00
J. Nick Koston
30c3174498
Fix CoreState in cloud google assistant tests ( #113045 )
2024-03-10 22:50:09 -10:00
J. Nick Koston
fd8ee6c857
Fix google assistant cloud sync test ( #113044 )
2024-03-10 22:44:21 -10:00
Yuxin Wang
405bf076b2
Remove a redundant check in APCUPSD's config flow ( #113032 )
...
Remove a redundant check that is impossible to happen in practice
2024-03-11 08:38:44 +01:00
Joost Lekkerkerker
b914ac3185
Move openhardwaremonitor fixture to integration tests ( #112982 )
...
* Move openhardwaremonitor fixture
* Update tests/components/openhardwaremonitor/test_sensor.py
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-03-11 08:30:22 +01:00
J. Nick Koston
3387892f59
Schedule tasks eagerly when called from hass.add_job ( #113014 )
2024-03-10 21:19:49 -10:00
Joost Lekkerkerker
cede16fc40
Move Feedreader fixture to integration test ( #112989 )
2024-03-10 23:27:38 -04:00
Joost Lekkerkerker
d528378f5d
Move london_air fixture to integration test ( #112991 )
...
* Move london_air fixture to integration test
* Fix
2024-03-10 23:27:20 -04:00
Joost Lekkerkerker
812bd4af65
Move metoffice fixture to integration test ( #112992 )
...
* Move metoffice fixture to integration test
* Fix
* Update tests/components/metoffice/test_config_flow.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Fix
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-03-10 23:27:00 -04:00
Joost Lekkerkerker
a78e389d9b
Move Microsoft face fixture to integration test ( #112993 )
...
* Move Microsoft face fixture to integration test
* Update tests/components/microsoft_face/test_init.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Fix
---------
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-03-10 23:26:37 -04:00
Joost Lekkerkerker
cddce0ce0d
Enable more SIM ruff rules ( #113015 )
...
* SIM101 SIM103
* SIM107 SIM109
* SIM110
* SIM112 SIM113
* SIM115
* SIM116
* Fix
* Fix
* Fix
2024-03-10 23:20:37 -04:00
J. Nick Koston
7ea79148ba
Ignore logging events in zha websocket tests ( #113031 )
2024-03-10 13:13:26 -10:00
Yuxin Wang
db31afe019
Migrate APCUPSD to has entity name ( #112997 )
...
* Properly set entity names for APCUPSD
* Add test cases to prevent future regressions
* Fix tests due to the updated entity IDs
* Prettify code
* Remove redundant translation key
2024-03-10 23:56:25 +01:00
Thomas55555
9a647d9b17
Bump aioautomower to 2024.3.0 ( #112627 )
...
Fix error in Husqvarna automower in Zones dataclass
2024-03-10 23:10:27 +02:00
Joost Lekkerkerker
d9f6e4be24
Add icon translations to Husqvarna automower ( #111727 )
...
* Add icon translations to Husqvarna automower
* fix
2024-03-10 21:55:31 +01:00
Jan Bouwhuis
02ef7ba134
Remove not needed hass.async_block_till_done in test ( #113002 )
2024-03-10 09:46:25 -10:00
Joost Lekkerkerker
958c843512
Move OpenALPR cloud fixture to integration test ( #112994 )
2024-03-10 15:17:24 -04:00
Joost Lekkerkerker
d76c20a483
Move uk_transport fixture to integration test ( #112995 )
2024-03-10 15:17:06 -04:00
Joost Lekkerkerker
65e1502b50
Move wsdot fixture to integration test ( #112996 )
2024-03-10 15:12:29 -04:00
J. Nick Koston
afa69cca38
Import custom components in the executor by default ( #112177 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-03-10 08:41:33 -10:00
J. Nick Koston
a2318c26c9
Run debouncer tasks eagerly to avoid scheduling on the event loop ( #112789 )
2024-03-10 08:37:10 -10:00
Jan Bouwhuis
c608d1cb85
Fix mqtt platform setup race ( #112888 )
2024-03-10 08:36:17 -10:00
Shai Ungar
eb81bf1d49
Improve 17track tests ( #112734 )
...
* 17Track tests
* add 17Track sensor to coverage
* extract repeated code
* 1. _goto_future - call tick only once
2. change test name to reflect test
3. remove ifs from test
* remove undersocre from _goto_future
2024-03-10 18:57:28 +01:00
Ernst Klamer
e91a38eede
Add Locks to Xiaomi-BLE ( #111156 )
2024-03-09 22:29:48 -10:00
A Björck
e631224372
Bump yalexs to 2.0.0 ( #111706 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-09 22:11:10 -10:00
Robert Svensson
ffcbab1c20
Split out deCONZ hub ( #112854 )
...
* Rename DeconzGateway to DeconzHub
* Move gateway.py to hub/hub.py
2024-03-10 08:25:12 +01:00
J. Nick Koston
f1b5dcdd1b
Refactor handling of device updates in ESPHome ( #112864 )
2024-03-09 20:30:17 -10:00
J. Nick Koston
60bddc2861
Schedule coroutine functions eagerly when async_listen uses run_immediately ( #112846 )
...
We have a few places where we call async_listen with a callback so we can schedule
the coro eagerly. We can drop these in favor of setting run_immediately now.
2024-03-09 23:04:25 -05:00
Jan Bouwhuis
caaa03536b
Cleanup mqtt PLATFORMS constant and CI-test platform filters ( #112847 )
2024-03-09 23:48:54 +01:00
J. Nick Koston
23ebd80285
Schedule coroutines with eager_task from async_track_state_change_event ( #112807 )
2024-03-09 11:24:54 -10:00
J. Nick Koston
4882fed939
Avoid saving auth right after we load it during startup ( #112008 )
2024-03-09 11:03:22 -10:00
Arie Catsman
44abe329a2
Enphase Envoy refactor and extend diagnostics ( #109080 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-09 11:03:07 -10:00
Jan Bouwhuis
3b0ea52167
Allow Just-in-Time platform setup for mqtt ( #112720 )
...
* Allow Just-in-Time platform setup for mqtt
* Only forward the setup of new platforms
* Fix new platforms being setup at reload + test
* Revert not related changes
* Remove unused partial
* Address comments, only import plaforms if needed
* Apply suggestions from code review
* Add multipl platform discovery test
* Improve test
* Use a lock per platform
2024-03-09 21:55:00 +01:00
J. Nick Koston
d0d1af8991
Improve performance of image streams ( #112810 )
2024-03-09 10:26:48 -10:00
Joost Lekkerkerker
033dd35655
Add icon translations to Yeelight ( #112363 )
...
* Add icon translations to Yeelight
* Add icon translations to Yeelight
2024-03-09 20:48:21 +01:00
Robert Svensson
020b656f51
Split out Axis config data ( #112825 )
...
Split out config data
2024-03-09 13:00:25 -05:00
Robert Svensson
03e4a20cdf
Rename get_deconz_session to get_deconz_api ( #112826 )
...
Move and rename get_deconz_session to get_deconz_api
2024-03-09 18:32:31 +01:00
jan iversen
59083b4e82
Remove deprecated retry_on_empty from modbus ( #112822 )
...
Remove deprecated retry_on_empty.
2024-03-09 13:59:09 +01:00
jan iversen
797983236f
Remove deprecated CLOSE_COMM_ON_ERROR from modbus ( #112821 )
2024-03-09 13:24:06 +01:00
Jan Bouwhuis
6534943837
Revert "Cleanup mqtt discovery code" ( #112818 )
...
Revert "Cleanup mqtt discovery code (#112749 )"
This reverts commit 87318c9111
.
2024-03-09 12:54:10 +01:00
jan iversen
fca3ac9903
Update modbus test to include a dummy sensor ( #112820 )
2024-03-09 12:19:57 +01:00
Jan Bouwhuis
87318c9111
Cleanup mqtt discovery code ( #112749 )
...
* Cleanup mqtt discovery code
* Cleanup mqtt discovery code
2024-03-09 11:54:27 +01:00
J. Nick Koston
2b0b3c238a
Make SSDP tasks background HassJob to avoid delaying startup ( #112668 )
2024-03-08 23:11:00 -10:00
J. Nick Koston
b7d9f26cee
Cache the job type for entity service calls ( #112793 )
2024-03-08 22:49:08 -10:00
Robert Svensson
f2879e6f39
Break out UniFi platform registration to its own class ( #112514 )
2024-03-09 09:18:23 +01:00
J. Nick Koston
a50883d975
Run service call tasks eagerly ( #112791 )
2024-03-08 20:37:21 -10:00
Allen Porter
2789060bbe
Fix local calendar handling of empty recurrence ids ( #112745 )
...
* Fix handling of empty recurrence ids
* Revert logging changes
2024-03-08 22:28:04 -05:00
Aaron Bach
3405bda835
Make sure Notion saves new refresh token upon startup ( #112676 )
...
* Make sure Notion saves new refresh token upon startup
* Code review
* Typing
* Smoother syntax
* Fix tests
* Fix tests for real
2024-03-08 22:27:56 -05:00
J. Nick Koston
65358c129a
Replace periodic tasks with background tasks ( #112726 )
...
* Phase out periodic tasks
* false by default or some tests will block forever, will need to fix each one manually
* kwarg works
* kwarg works
* kwarg works
* fixes
* fix more tests
* fix more tests
* fix lifx
* opensky
* pvpc_hourly_pricing
* adjust more
* adjust more
* smarttub
* adjust more
* adjust more
* adjust more
* adjust more
* adjust
* no eager executor
* zha
* qnap_qsw
* fix more
* fix fix
* docs
* its a wrapper now
* add more coverage
* coverage
* cover all combos
* more fixes
* more fixes
* more fixes
* remaining issues are legit bugs in tests
* make tplink test more predictable
* more fixes
* feedreader
* grind out some more
* make test race safe
* one more
2024-03-08 21:45:10 -05:00
J. Nick Koston
08416974c9
Avoid trying to load translations for integrations that have none ( #112683 )
2024-03-08 14:21:44 -10:00
J. Nick Koston
af6f2a516e
Guard against db corruption when renaming entities ( #112718 )
2024-03-08 11:34:07 -10:00
Marc Mueller
cef20506dc
Replace EventType with Event [missing] ( #112753 )
2024-03-08 21:56:42 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
puddly
55b2d1a00c
Disable updating ZHA coordinator path from discovery info ( #112415 )
...
* Never update the device path from config flows
* Bring coverage up to 100%
* Update tests/components/zha/test_config_flow.py
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
---------
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
2024-03-08 14:33:33 -05:00