Commit graph

74853 commits

Author SHA1 Message Date
Erwin Douna
e882d47cde
Add Downloader config flow, including tests ()
* Adding base line, including tests

* Adding validatge input and expanding tests

* Updating manifest

* Minor patch

* Revert minor patch, wrong nesting

* Adding proper translations

* Including abort message

* Update homeassistant/components/downloader/config_flow.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Rename exception class

* Refactor import

* Update strings

* Apply suggestions from code review

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/downloader/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Reverting back filename and fix typing

* Reverting back mutex/lock

* Upgrade version

* Adding typing

* Removing coroutine

* Removing unload entry (for now)

* Removing comment

* Change type

* Putting download back in setup_entry

* Revert back code

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-03-18 16:16:24 +01:00
Chris Caron
7dc64a03ef
Bump apprise to 1.7.4 ()
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2024-03-18 15:34:08 +01:00
J. Nick Koston
40ce2011be
Run dhcp listeners with run_immediately ()
Neither of these need a call_soon
2024-03-18 10:16:20 -04:00
Jan Bouwhuis
3dc8df2403
Get ServiceValidationError message from translation cache only ()
* Get ServiceValidationError message from translation cache only

* Remove message for NotValidPresetModeError
2024-03-18 14:42:21 +01:00
Jan Bouwhuis
ec7aecef84
Get HomeAssistantError message from translation cache only ()
Get HomeAssistant error message from translation cache only
2024-03-18 14:39:41 +01:00
Sid
727581eea3
Add first batch of Ruff PT rules ()
* Add first batch of Ruff PT rules

* fix weather test

* Fix pilight test

* Update test_intent.py

* Update pilight test_init.py

* Update test_init.py
2024-03-18 13:26:14 +01:00
J. Nick Koston
8f33bad4ef
Move legacy tts setup to use tracked tasks ()
* Move legacy tts setup to a tracked task

* comment

* fix test

* fix test

* fix more tests

* tweak
2024-03-18 13:11:22 +01:00
J. Nick Koston
719d373bd7
Move legacy stt setup to use tracked tasks ()
* Move legacy stt setup to use tracked tasks

* comment
2024-03-18 13:10:12 +01:00
J. Nick Koston
10f2d8b4b1
Move legacy notify setup to use tracked tasks ()
* Move legacy notify setup to a tracked task

* fix test

* fix test

* comment
2024-03-18 13:09:21 +01:00
J. Nick Koston
264e023ab4
Run august stop listener with run_immediately ()
There is no need for a call_soon here
2024-03-18 14:07:00 +02:00
J. Nick Koston
8a144d16f5
Move legacy device_tracker setup to a tracked task ()
* Move legacy device_tracker setup to a tracked task

Legacy platforms are now loaded in a tracked task which
allows anything waiting on device_tracker (such as
a config entry that uses the device_tracker
platform) to proceed.

This also allows us to remove the workaround
of adding device_tracker to
hass.config.components in its setup

* tweak

* tweak

* fix tests
2024-03-18 10:39:59 +01:00
epenet
3844ade572
Fix unknown values in onewire ()
* Fix unknown values in onewire

* Update tests
2024-03-18 10:12:46 +01:00
dependabot[bot]
20897e0a3a
Bump dawidd6/action-download-artifact from 3.1.2 to 3.1.3 () 2024-03-18 08:28:10 +01:00
Ernst Klamer
e23ce42d3a
Bump xiaomi-ble to 0.27.1 () 2024-03-17 19:40:03 -10:00
J. Nick Koston
fcdb7039f9
Migrate isy994 listeners to use run_immediately () 2024-03-17 17:38:48 -10:00
J. Nick Koston
9a6804b5d7
Adjust config flow pre-import comment in group () 2024-03-17 14:28:29 -10:00
Johnny Willemsen
0d279ccd13
Improve scaffold test_config_flow ()
Update test_config_flow.py

Use DOMAIN constant
2024-03-18 00:47:11 +01:00
Sid
82a60fe8ad
Enable Ruff RSE () 2024-03-18 00:40:38 +01:00
Jan Bouwhuis
685553d17d
Cache late imported async_get_exception_message for HomeAssistantError ()
* Cache late imported async_get_exception_message for HomeAssistantError

* Use a dict to store the function cache

* Update homeassistant/exceptions.py

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-17 21:23:46 +01:00
Maciej Bieniek
d8f74571a1
Add removal condition to Shelly battery sensor ()
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-17 21:21:42 +01:00
J. Nick Koston
4d75940cd2
Start and stop template cache watcher to run_immediately () 2024-03-17 08:16:26 -10:00
J. Nick Koston
68320b1278
Migrate registry for labels and categories to run_immediately () 2024-03-17 08:16:11 -10:00
J. Nick Koston
93497dde8b
Run registry cleanup listeners immediately () 2024-03-17 08:15:55 -10:00
J. Nick Koston
091199d24a
Run entity registry write_unavailable_states immediately at start () 2024-03-17 08:15:41 -10:00
J. Nick Koston
dbbd6fff01
Move ESPHome disconnects to the close event () 2024-03-17 08:15:28 -10:00
J. Nick Koston
412fd3dc05
Add run_immediately to usb start/stop listeners () 2024-03-17 08:15:14 -10:00
Jan-Philipp Benecke
324c922c0d
Remove deprecated hass.components from withings webhook tests ()
* Remove deprecated `hass.components` from withings webhook tests

* Use patch.object
2024-03-17 17:48:58 +01:00
Jan-Philipp Benecke
681705394d
Remove deprecated hass.components from network helper function ()
* Remove deprecated `hass.components` from network helper function

* Remove deprecated use of `hass.components` in alexa camera tests
2024-03-17 17:42:48 +01:00
J. Nick Koston
d9bc09e93a
Migrate stream listeners to use run_immediately and eager tasks ()
None of these need to a call_soon and can shutdown a bit faster
2024-03-17 09:42:25 -07:00
Jan-Philipp Benecke
25c4ab070b
Use mock_platform for event entity component tests instead of hass.components () 2024-03-17 17:32:16 +01:00
MarkGodwin
75a489deb9
Add WAN port connection control to TP-Link Omada gateways ()
* Add gateway connection switches

* Add unit tests

* tplink_omada code review feedback

* Rebase and move icons and strings into json
2024-03-17 16:06:57 +01:00
Sid
295b4203a1
Re-ignore Ruff rule PLC1901 ()
Re-ignore PLC1901
2024-03-17 16:04:40 +01:00
Jan Bouwhuis
81ab29a38e
Freeze time on zwave_js update test ()
Freeze time on jwave_js update test
2024-03-17 16:02:45 +01:00
Sid
929bcb92e2
Add Ruff LOG rules ()
* Add Ruff LOG rules

* Address review comment

* Update const.py
2024-03-17 15:59:49 +01:00
Jan-Philipp Benecke
b8e1862746
Remove deprecated hass.components from image_processing platform ()
* Remove deprecated `hass.components` from image_processing platform

* Add test and change log

* D'oh.. use updated error text
2024-03-17 15:59:29 +01:00
Michael
0643ff1cfe
Improve debug logging in Tankerkoenig () 2024-03-17 13:44:32 +01:00
Sid
6113b99ddd
Replace pylint pointless-statement with ruff B018 ()
* Replace pylint pointless-statement with ruff B018

* fix occurrences of B018

* disable pylint expression-not-assigned as well

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-17 10:58:14 +01:00
Erik Montnemery
7b20641651
Add tests of homeworks __init__ () 2024-03-17 10:22:08 +01:00
Erik Montnemery
398c38b50d
Add tests of homeworks button () 2024-03-17 10:06:57 +01:00
Sid
d5fd005db8
Add ruff rule PIE808 () 2024-03-17 09:56:26 +01:00
Erik Montnemery
1a70dbfd94
Add tests of homeworks light () 2024-03-17 09:46:36 +01:00
Erik Montnemery
8f6c4f8b33
Add tests of homeworks binary sensor () 2024-03-17 09:45:49 +01:00
J. Nick Koston
5e8265d8a4
Add run_immediately to bluetooth listeners () 2024-03-16 19:03:14 -10:00
J. Nick Koston
1f9c8694a8
Save bluetooth passive data eagerly at the stop event () 2024-03-16 19:02:57 -10:00
J. Nick Koston
6df3e9d7c0
Run bond shutdown listener with run_immediately () 2024-03-16 17:21:03 -10:00
J. Nick Koston
309fcb5c30
Eagerly shutdown homekit_controller at the stop event () 2024-03-16 17:15:46 -10:00
J. Nick Koston
4d430520a0
Run yalexs_ble shutdown with run_immediately () 2024-03-16 17:06:31 -10:00
J. Nick Koston
ba7ec4ac16
Eagerly shutdown unifiprotect at the stop event () 2024-03-16 17:04:04 -10:00
Sid
69564b1a17
Add ruff rule PIE800 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 16:31:30 -10:00
Christopher Bailey
43652a4ace
Deprecate UniFi Protect HDR switch and package sensor ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 16:15:32 -10:00