Commit Graph
14007 Commits
Author SHA1 Message Date
J. Nick KostonandGitHub 5dbab21f9a Fix missing f-string in filterable_job (#89340)
* Fix missing f-string in filterable_job

* remove bad test
2023-03-08 15:53:48 -05:00
Erik MontnemeryandGitHub 09915f8047 Add WS API for getting an OTBR's extended address (#89384)
* Add WS API for getting an OTBR's extended address

* Bump python-otbr-api to 1.0.8

* Really add require_admin decorator to otbr WS API
2023-03-08 15:52:53 -05:00
parliament119andGitHub 7d97653895 Bump pyfritzhome to 0.6.8 and add support for Non-Color-Bulbs (#89141) 2023-03-08 18:24:37 +01:00
epenetandGitHub 7982f713e1 Fix lingering tasks in plex (#89282)
* Cleanup expected_lingering_tasks in plex

* Adjust
2023-03-08 10:53:08 -05:00
epenetandGitHub 3e2ee7cd11 Add missing mock in aemet config flow tests (#89360) 2023-03-08 10:18:44 -05:00
epenetandGitHub 33906059d3 Add missing mock in airq config flow tests (#89364) 2023-03-08 10:18:31 -05:00
epenetandGitHub 3a40f5f35b Add missing mock in airvisual_pro config flow tests (#89362) 2023-03-08 15:18:24 +00:00
epenetandGitHub 23698eb99f Add missing mock in agent_dvr config flow tests (#89361) 2023-03-08 15:18:17 +00:00
epenetandGitHub 959c2205d5 Add missing mock in airvisual config flow tests (#89359) 2023-03-08 10:18:07 -05:00
epenetandGitHub b61ad43144 Add missing mock in amber config flow tests (#89358) 2023-03-08 10:17:45 -05:00
epenetandGitHub f4572a2e1c Add missing mock in atag config flow tests (#89356) 2023-03-08 10:16:51 -05:00
epenetandGitHub ea6a95176d Add missing mock in azure event hub config flow tests (#89355) 2023-03-08 10:16:28 -05:00
Franck NijhofandGitHub feb3f543be Improve Supervisor API handling (#89379) 2023-03-08 15:21:11 +01:00
epenetandGitHub 30884f6d17 Add missing mock in axis config flow tests (#89365) 2023-03-08 09:38:55 +01:00
epenetandGitHub adb4414440 Add missing mock in brother config flow tests (#89354) 2023-03-08 08:43:07 +01:00
puddlyandGitHub fa128fbcec Clean ZHA radio path with trailing whitespace (#89299)
* Clean config flow entries with trailing whitespace

* Rewrite the config entry at runtime, without upgrading

* Skip intermediate `data = config_entry.data` variable

* Perform a deepcopy to ensure the config entry will actually be updated
2023-03-07 20:24:08 -05:00
J. Nick KostonandGitHub bde40cde48 Fix thread diagnostics loading blocking the event loop (#89307)
* Fix thread diagnostics loading blocking the event loop

* patch target
2023-03-07 20:21:26 -05:00
2d3c5cf8ee Reolink test init 100% (#89112)
* Split out reolink tests

* Bring __init__ coverage to 100%

* Improve docstrings

* Use patching and autospec=True for ReolinkHost

* Use fixture

* fix styling

* Parametrize tests

* Update tests/components/reolink/conftest.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update test_config_flow.py

* convert to fixture

* review comments

* Update tests/components/reolink/conftest.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/reolink/conftest.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update tests/components/reolink/conftest.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* fix tests

* fix imports

* Update test_init.py

* Check if host is logout on reload

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-07 20:29:38 +01:00
Franck NijhofandGitHub 8c282e2b0d Remove deprecated DSMR Reader YAML configuration (#89239) 2023-03-07 13:24:41 +01:00
epenetandGitHub 14bf68ad03 Cleanup expected_lingering_tasks in knx (#89279) 2023-03-07 11:59:31 +01:00
epenetandGitHub c51bde9a26 Fail CI on lingering tasks (#88905) 2023-03-07 11:35:48 +01:00
755c44d152 Add HomeKit Door accessory type (#80741)
Co-authored-by: Jason Redd <jredd46@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-06 18:07:43 -10:00
J. Nick KostonandGitHub 3c70dd9b42 Make sql subqueries threadsafe (#89254)
* Make sql subqueries threadsafe

fixes #89224

* fix join outside of lambda

* move statement generation into a seperate function to make it easier to test

* add cache key tests

* no need to mock hass
2023-03-06 20:44:11 -05:00
Maciej BieniekandGitHub 1538f639ae Bump gios library to version 3.1.0 (#89044) 2023-03-06 18:12:19 +01:00
9ff45ca013 Allow loading UniFi entities on config options change (#88762)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-06 16:08:14 +01:00
5ee383456f Catch exceptions and add logging when writing states on MQTT entities (#89091)
* Catch exceptions when writing states

* Do not use wrapper for logging and adjust tests

* Catch logging directly on async_write_ha_state()

* Update homeassistant/components/mqtt/models.py

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

* Fix test

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-06 15:34:47 +01:00
epenetandGitHub 14a17b1028 Use mock_setup_entry fixture in melnor (#89226) 2023-03-06 12:28:40 +01:00
epenetandGitHub bf5f7c53d8 Move mock_setup_entry to conftest (#88484) 2023-03-06 11:31:50 +01:00
Erik MontnemeryandGitHub ab1df8065c Refresh homeassistant_alerts when components are loaded (#76049) 2023-03-06 10:26:37 +01:00
epenetandGitHub 0c65af93af Split reauth tests in plex (#89212) 2023-03-06 10:02:32 +01:00
MarkGodwinandGitHub 876776e291 Fix host IP and scheme entry issues in TP-Link Omada (#89130)
Fixing host IP and scheme entry issues
2023-03-05 23:47:45 -05:00
ztamas83andGitHub 811e286f0f Test coverage for Tibber config flow (#89088)
* Test coverage for Tibber config flow

* Fix isort and ruff errors
2023-03-05 20:38:47 -05:00
Matthias AlphartandGitHub 36dabaaea6 Fix lingering tasks in KNX tests (#89201) 2023-03-05 20:19:42 -05:00
Franck NijhofandGitHub ff485d4648 Refactor WLED number tests (#88582) 2023-03-05 19:49:01 -05:00
Franck NijhofandGitHub 216864d8f0 Refactor WLED switch tests (#89197) 2023-03-05 19:46:53 -05:00
G JohanssonandGitHub f4cda2dfda Add device_class and state_class to sql (#85418) 2023-03-05 20:30:42 +01:00
Franck NijhofandGitHub 84402a9ae0 Remove deprecated Season YAML configuration (#89166)
* Remove deprecated Season YAML configuration

* Restore old title defaults
2023-03-05 17:07:32 +01:00
Jan BouwhuisandGitHub a9becd8e0e Raise ValueError on date parsing of MQTT sensor with invalid date format (#89036)
* Suppress ValueError on date parsing of MQTT sensor

* Simplify, but not update state on invalid payload

* Still raise an an invalid date

* Make datetime state unknown on invalid format

* remove unrelated added new line
2023-03-05 17:06:48 +01:00
Franck NijhofandGitHub 2fc2c2efbe Remove deprecated Moon YAML configuration (#89161)
* Remove deprecated Moon YAML configuration

* Restore old title defaults
2023-03-05 17:05:32 +01:00
Chris TalkingtonandGitHub 2e1f6cad96 Detect newly connected clients in jellyfin (#89168) 2023-03-05 15:00:16 +01:00
Maciej BieniekandGitHub 6dc99d2ad8 Bump brother and pysnmplib backend libraries (#89100)
* Bump brother and pysnmplib

* Fix tests
2023-03-05 12:40:12 +01:00
epenetandGitHub ec0223f326 Cleanup plex config flow tests (#88991) 2023-03-05 05:38:26 +01:00
Franck NijhofandGitHub bfadc8453d Clean up import/migration repair in LaMetric (#89153) 2023-03-05 02:41:31 +01:00
GarrettandGitHub 34f8e94ca9 Bump subarulink to 0.7.5 (#89162) 2023-03-04 22:26:16 +01:00
Franck NijhofandGitHub 5e2b7c6377 Refactor WLED diagnostic tests (#88581) 2023-03-04 15:09:47 +01:00
Franck NijhofandGitHub bab758c951 Refactor WLED button tests (#88580) 2023-03-04 11:45:53 +01:00
b27b094e27 Add day to event end to correct TwenteMilieu event timespan (#89028)
[TwenteMilieu] Add day to event end to correct event timespan

Co-authored-by: Allen Porter <allen@thebends.org>
2023-03-03 20:06:28 -08:00
J. Nick KostonandGitHub 1bd9767d8c Handle InnoDB deadlocks during migration (#89073)
* Handle slow InnoDB rollback when encountering duplicates during migration

fixes #89069

* adjust

* fix mock

* tests

* return on success
2023-03-03 22:00:13 -05:00
epenetandGitHub 0f493d85c8 Adjust xiaomi_ble tests (#89078)
Adjust xiaomi_ble test docstrings
2023-03-03 08:32:23 +01:00
J. Nick KostonandGitHub 48b93e03ee Cache transient templates compiles provided via api (#89065)
* Cache transient templates compiles provided via api

partially fixes #89047 (there is more going on here)

* add a bit more coverage just to be sure

* switch method

* Revert "switch method"

This reverts commit 0e9e1c8cbe.

* tweak

* hold hass

* empty for github flakey
2023-03-02 21:31:12 -05:00