Commit Graph

60070 Commits

Author SHA1 Message Date
J. Nick Koston
edb06c58fa Add some more typing to screenlogic (#88522) 2023-03-11 23:04:19 -05:00
J. Nick Koston
84327f203c Fix flux_led set time to not happen during DST switch (#89559)
* Fix flux_led set time test

If this test was run at the wrong time of the day
it would not have been long enough for the set time
to fire since it only happens at 2:40:30 in the morning
local time

* Revert "Fix flux_led set time test"

This reverts commit 3241912eff.

* Change time set to not be during DST switch
2023-03-11 21:52:17 -05:00
J. Nick Koston
1c57339ec3 Refactor recorder tests to use recorder history API (#89565) 2023-03-11 21:51:16 -05:00
J. Nick Koston
50c31a5355 Move legacy database queries and models to prepare for schema v38 (#89532) 2023-03-11 11:26:30 -10:00
J. Nick Koston
16b420d660 Fix get_significant_states_with_session query looking at legacy columns (#89558) 2023-03-11 10:37:00 -10:00
J. Nick Koston
8bd43760b6 Deduplicate event_types in the events table (#89465)
* Deduplicate event_types in the events table

* Deduplicate event_types in the events table

* more fixes

* adjust

* adjust

* fix product

* fix tests

* adjust

* migrate

* migrate

* migrate

* more test fixes

* more test fixes

* fix

* migration test

* adjust

* speed up

* fix index

* fix more tests

* handle db failure

* preload

* tweak

* adjust

* fix stale docs strings, remove dead code

* refactor

* fix slow tests

* coverage

* self join to resolve query performance

* fix typo

* no need for quiet

* no need to drop index already dropped

* remove index that will never be used

* drop index sooner as we no longer use it

* Revert "remove index that will never be used"

This reverts commit 461aad2c52.

* typo
2023-03-11 14:54:55 -05:00
Kevin Worrel
56454c8580 Reconnect on any ScreenLogic exception (#89269)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-11 09:27:33 -10:00
Robert Svensson
8564768d9e UniFi library controls add/update signalling (#89525)
* Library controls add/update signalling

* Remove add/remove signalling

* Remove unifi_entity_base and unifi_client to make mypy pass
2023-03-11 20:14:39 +01:00
Robert Svensson
7487a004fd Bump pydeconz to v110 (#89527)
* Bump pydeconz to v109

* Bump pydeconz to v110 for additional color modes
2023-03-11 20:13:27 +01:00
J. Nick Koston
52cea16f74 Remove unused code in RecorderRuns.entity_ids (#89526) 2023-03-11 12:46:12 +01:00
J. Nick Koston
01e1221443 Refactor logbook data to use a dataclass (#89534) 2023-03-11 12:45:27 +01:00
rappenze
fccdd7b102 Fix bug in fibaro cover (#89502) 2023-03-11 09:15:05 +01:00
Robert Svensson
288a4203ab Make client tracker use common UniFi entity class (#84942)
* Make client tracker use common UniFi entity class

* Fix tests

* Fix mypy

* Remove legacy data

* Fix comment: skip else use return

* Minor change

* Remove missed stuff from previous rebase

* Import async_device_available_fn from entities.py rather than specifying it in device_tracker

* Avoid using asserts

* Keep explicit parenthesis for readability

* Allow loading entities on option changes
2023-03-11 06:23:49 +01:00
Paulus Schoutsen
d6a223f0e1 Await block till done inside patched config entry in tests (#89515) 2023-03-10 06:42:53 -10:00
epenet
96bd714364 Add FTTH and WAN info to SFR box diagnostics (#89492)
* Add FTTH and WAN info to SFR box diagnostics

* Adjust tests

* Use snapshots
2023-03-10 10:09:04 -05:00
epenet
74d4a26f97 Add missing mock in jellyfin config flow tests (#89510) 2023-03-10 10:06:53 -05:00
epenet
f22fabdd7f Add missing mock in kmtronic config flow tests (#89511) 2023-03-10 10:05:31 -05:00
epenet
401273dcff Add missing mock in lacrosse_view config flow tests (#89512) 2023-03-10 10:05:13 -05:00
epenet
f674559a71 Add missing mock in landisgyr config flow tests (#89513) 2023-03-10 10:04:45 -05:00
Vincent Knoop Pathuis
75bca76e68 Landis+Gyr move coordinator to own file (#89433)
* Move coordinator to own file and add test cases

* Apply typing improvements from review

* Remove testcase for exception during setup

* Simplify unittest for failing serial connection

* Readd checks in serial connection test after review
2023-03-10 15:57:35 +01:00
epenet
029093d0b2 Fix lingering timer in device registry (#89422) 2023-03-10 09:48:58 -05:00
dependabot[bot]
f4b8598979 Bump home-assistant/builder from 2022.11.0 to 2023.03.0 (#89485)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-10 13:27:07 +01:00
epenet
b4c1c0beb7 Bump pytest-xdist to 3.2.0 (#89501) 2023-03-10 13:08:45 +01:00
epenet
0f15f8b84b Bump pytest-sugar to 0.9.6 (#89500) 2023-03-10 12:58:29 +01:00
epenet
a0f725dfcb Add type hints to tests (#89497) 2023-03-10 12:06:50 +01:00
Thijs W
b8bda93d87 Add config flow to frontier_silicon (#64365)
* Add config_flow to frontier_silicon

* Add missing translation file

* Delay unique_id validation until radio_id can be determined

* Fix tests

* Improve tests

* Use FlowResultType

* Bump afsapi to 0.2.6

* Fix requirements_test_all.txt

* Stash ssdp, reauth and unignore flows for now

* Re-introduce SSDP flow

* hassfest changes

* Address review comments

* Small style update

* Fix tests

* Update integrations.json

* fix order in manifest.json

* fix black errors

* Apply suggestions from code review

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

* Address review comments

* fix black errors

* Use async_setup_platform instead of async_setup

* Address review comments on tests

* parameterize tests

* Remove discovery component changes from this PR

* Address review comments

* Apply suggestions from code review

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

* Add extra asserts to tests

* Restructure _async_step_device_config_if_needed

* Add return statement

* Update homeassistant/components/frontier_silicon/media_player.py

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-10 10:26:03 +01:00
Erik Montnemery
fde205c158 Add unconfigured flag to thread discovery data (#89230)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-09 22:32:32 -05:00
J. Nick Koston
9e1ba8534a Fix data migration never finishing when database has invalid datetimes (#89474)
* Fix data migration never finishing when database has invalid datetimes

If there were impossible datetime values in the database (likely
from a manual sqlite to MySQL conversion) the conversion would
never complete

* Update homeassistant/components/recorder/migration.py
2023-03-09 21:03:41 -05:00
TheJulianJES
d828263ee3 Add device class to ZHA Xiaomi plug "consumer connected" sensor (#89476)
Add device class to ZHA Xiaomi plug "consumer connected"
2023-03-09 20:15:22 -05:00
Jared Szechy
4591bb1823 Add Ruth and Stephen voices to AWS Polly (#89344)
Add Ruth and Stephen
2023-03-09 19:13:56 -05:00
epenet
f8462fd5b7 Add missing mock in guardian config flow tests (#89451) 2023-03-09 22:57:16 +01:00
Lucas Mindêllo de Andrade
eed16dc185 Add list areas function to template (#88441) 2023-03-09 22:32:30 +01:00
epenet
48fca3bb27 Fix missing debouncer cancel in update coordinator (#89383)
* Fix missing debouncer cancel in update coordinator

* Improve

* Adjust with comment

* Adjust again

* Simplify PR

* Adjust tests to avoid lingering timer

* Improve
2023-03-09 15:16:52 -05:00
Erik Montnemery
7ef1c289be Fix Dormakaba dKey deadbolt binary sensor (#89447)
* Fix Dormakaba dKey deadbolt binary sensor

* Spelling
2023-03-09 13:17:29 -05:00
Kirill Kulakov
d1734bc0ab Xiaomi Air Purifier S2 illuminance sensor support (#89208)
* Add sensor illuminance sensor support xiaomi s2 air purifier

* Add sensor illuminance sensor support xiaomi s2 air purifier

* fix sorting
2023-03-09 19:15:14 +01:00
Stephan Uhle
3796a73856 Add device info to edl21 (#89327) 2023-03-09 19:08:55 +01:00
Joakim Sørensen
4f29e1e180 Add stats sensors for core and supervisor (#89455)
* Add stats sensors for core and supervisor

* Update homeassistant/components/hassio/__init__.py
2023-03-09 19:06:35 +01:00
epenet
3a4ce260b4 Add missing mock in freedompro config flow tests (#89442) 2023-03-09 19:05:23 +01:00
epenet
f3084165b1 Add missing mock in filesize config flow tests (#89441) 2023-03-09 19:04:51 +01:00
epenet
4e4608183e Add missing mock in fibaro config flow tests (#89440) 2023-03-09 19:04:07 +01:00
Paul Bottein
01d8eaa5b6 Update frontend to 20230309.0 (#89446) 2023-03-09 12:28:02 -05:00
epenet
adfd263635 Add missing mock in gree config flow tests (#89450) 2023-03-09 18:12:22 +01:00
Marc Mueller
3c27f9ea7d Update actions/cache to 3.3.0 (#89438) 2023-03-09 17:58:03 +01:00
Stefan Agner
f903c536fb Add Hardkernel ODROID-M1 (#89431)
* Add Hardkernel ODROID-M1

Add Hardkernel ODROID-M1 machine. ODROID-M1 is a Rockchip RK3568B2 SoC
based single board computer with 4xCortex-A55, NVMe support and up to
8GB of RAM.

* Update homeassistant/components/hardkernel/hardware.py

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

* Fix tests

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-09 14:18:19 +01:00
epenet
dcff2f37f7 Add DSL prefix to SFRBox ADSL sensors (#89276) 2023-03-09 13:19:22 +01:00
Jeef
3545209355 Add vermont_castings virtual integration for Intellifire (#89317) 2023-03-09 13:17:50 +01:00
epenet
4a082403eb Add missing mock in coronavirus config flow tests (#89428) 2023-03-09 13:16:36 +01:00
Jack Boswell
c6d2824afe Disable some less commonly used starlink entities by default (#87869)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-09 13:06:27 +01:00
epenet
b0631fed1d Add missing mock in braviatv config flow tests (#89419) 2023-03-09 13:05:32 +01:00
epenet
9faf251321 Add missing mock in buienradar config flow tests (#89420) 2023-03-09 13:05:04 +01:00