Commit Graph
59071 Commits
Author SHA1 Message Date
epenetandGitHub 22bfb99db4 Add type hints to requests_mock (#87757) 2023-02-10 11:44:09 +01:00
epenetandGitHub fac746c974 Improve recorder type hints in tests (#87826)
* Improve recorder type hints in tests

* Add comment

* Adjust comment
2023-02-10 11:11:39 +01:00
b5dfd83c46 Fix Fully Kiosk Browser merging entities when MAC empty (#87743)
* Fix FKB merging entities when MAC empty

Fully Kiosk Browser will sometimes return an empty MAC address in the
device_info API call. When two Fully Kiosk devices are added with
missing MAC addresses, HA will assume the two devices are the same and
merge the entities. This fixes that problem.

Fixes #77722

* Update homeassistant/components/fully_kiosk/entity.py

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

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-10 09:19:09 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3057dd241a Bump actions/cache from 3.2.4 to 3.2.5 (#87825)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-10 08:43:24 +01:00
LukeandGitHub 8de321253b Reorganize manifest scaffold (#87819)
* reorganize manifest.json

* add iot_class to manifest
2023-02-10 07:52:00 +01:00
Raman GuptaandGitHub 8aa64c8008 Add has_firmware_update_cc bool to zwave_js/node_status cmd (#87310)
* Add `has_firmware_update_cc` bool to zwave_js/node_status cmd

* fix test

* Switch order of equality check
2023-02-10 00:49:09 -05:00
Michael HansenandGitHub 8cd5106c15 Add HassGetState intent for queries (#87808)
* Use names instead of entity ids for list

* Add HassGetState for Assist queries

* Add unknown area to test

* Clean up and test device classes
2023-02-09 23:39:46 -05:00
J. Nick KostonandGitHub ea356ad260 Optimize fetching weekly/monthly/yearly statistics (#87747)
* Optimize fetching statistics

* speed up

* avoid double groupby

* avoid another loop

* tweak flow

* fixes

* tweak

* avoid a new dt object in the cache for week/month

* avoid a new dt object in the cache for week/month
2023-02-09 21:22:32 -05:00
Ernst KlamerandGitHub 9dd806278b Keep sleepy xiaomi-ble devices that don't broadcast regularly available (#87654)
Co-authored-by: J. Nick Koston <nick@koston.org>
fixes undefined
2023-02-09 16:42:08 -06:00
J. Nick KostonandGitHub 4cebc767b5 Give users a hint that their bluetooth adapter has been ignored (#87727) 2023-02-09 16:41:53 -06:00
cbaf4764e7 Ensure MySQL tests cleanup connections and raise an exception if they do not (#87767)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Erik <erik@montnemery.com>
2023-02-09 16:27:53 -06:00
J. Nick KostonandGitHub 84d14cc76a Add reauthentication support to Yale Access Bluetooth (#87719)
* Bump yalexs_ble to 1.12.11 to fix reconnect when services fail to resolve

changelog: https://github.com/bdraco/yalexs-ble/compare/v1.12.8...v1.12.11

* bump to make it work with esphome proxy as well

* empty

* Add reauth support to yalexs_ble

* lint

* reduce

* tweak

* tweak

* test for reauth

* Apply suggestions from code review

* cleanup
2023-02-09 22:24:14 +01:00
J. Nick KostonandGitHub 509de02044 Ensure recorder still shuts down if the final commit fails (#87799) 2023-02-09 15:12:40 -06:00
starkillerOGandGitHub f96de4ab45 Bump motionblinds to 0.6.16 (#87782) 2023-02-09 21:43:28 +01:00
Tom HarrisandGitHub 926534bde2 Bump pyinsteon to 1.3.1 (#87788)
* Bump pyinsteon to 1.3.1

* Fix record received test

* Fix status received test
2023-02-09 21:40:06 +01:00
8fddd0e53a Bump aiolifx to 0.8.9 (#87790)
Signed-off-by: Avi Miller <me@dje.li>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-09 21:38:17 +01:00
jan iversenandGitHub b9b5a279f2 Correct sensor restore entity in modbus (#87563)
* Correct sensor restore entity.

* Review comments.
2023-02-09 21:35:44 +01:00
Erik MontnemeryandGitHub cc564026fa Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
J. Nick KostonandGitHub abf0c87e40 Migrate statistics to use timestamp columns (#87321) 2023-02-09 12:24:19 -06:00
8ccb3b7151 Fix circular import loop in homeassistant/helpers/entity.py (#87780)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-09 19:15:53 +01:00
Erik MontnemeryandGitHub 2fae82a9ef Really ensure recorder test fixture is setup before hass fixture (#87796) 2023-02-09 11:43:14 -06:00
J. Nick KostonandGitHub db503c0daa Always use UTC time for the MariaDB/MySQL session (#87583) 2023-02-09 11:39:45 -06:00
J. Nick KostonandGitHub c05a7b29e6 Terminate stale MySQL connections at the end of test runs (#87794) 2023-02-09 11:13:13 -06:00
Jan BouwhuisandGitHub 1a38b9f665 Improve coverage MQTT device_trigger (#87408)
* Improve coverage MQTT device_trigger

* Use assert
2023-02-09 17:42:32 +01:00
epenetandGitHub a13535b0c7 Bump renault-api to 0.1.12 (#87773)
fix https://github.com/hacf-fr/renault-api/pull/789
2023-02-09 16:55:02 +01:00
Jan BouwhuisandGitHub a244f9b202 Add type hints tests MQTT config_flow (#87783) 2023-02-09 16:47:28 +01:00
epenetandGitHub 07a1a0efa9 Add type hints to integration tests (part 1) (#87777) 2023-02-09 16:09:13 +01:00
G JohanssonandGitHub 2b3e6a4ca8 Change name to entity_id for lock validation error message (#87574) 2023-02-09 15:59:30 +01:00
J. Nick KostonandGitHub 03b47f1931 Disable test_entity_ids on MariaDB (#87766)
Dropping the database after this test will fail on
MySQL and hang forever because it causes an InnoDB deadlock

```
| 2042 | root   | localhost:52698 | NULL               | Query   |   41 | Waiting for table metadata lock | DROP DATABASE `homeassistant-test` |    0.000 |
```
2023-02-09 15:30:35 +01:00
J. Nick KostonandGitHub f4a81a8b5b Disable test_migration_in_progress on MySQL (#87765)
This test was recently enabled on MySQL in
https://github.com/home-assistant/core/pull/87753

Since it the migration is still in progress in the background
when the test ends, it causes deadlock with InnoDB when its dropped
out from under it
2023-02-09 15:27:27 +01:00
Jan BouwhuisandGitHub dc5f35a85e Add missed type hints on MQTT platform tests (#87781) 2023-02-09 15:22:30 +01:00
J. Nick KostonandGitHub 483b0cd017 Skip db locking test with postgresql/MySQL (#87760)
* Skip db locking test with postgresql/MySQL

https://github.com/home-assistant/core/pull/87756#issuecomment-1423828389

* switch to the guards instead
2023-02-09 13:58:32 +01:00
Franck NijhofandGitHub f5b651750c Enable Ruff ICN001 (#87775) 2023-02-09 13:41:50 +01:00
Marc MuellerandGitHub 67499e0204 Enable pydantic mypy plugin (#87415) 2023-02-09 13:33:10 +01:00
Erik MontnemeryandGitHub 2d2ff19949 Round value in state_with_unit template function (#87619) 2023-02-09 12:54:59 +01:00
majussandGitHub 773446946e Bump lupupy to 0.2.8 (#87754) 2023-02-09 12:49:01 +01:00
epenetandGitHub 94779dddaa Add type hints to diagnostics test helper (#85494)
* Add type hints to diagnostics test helper

* Move type alias to the top

* Use Any

* Move TestClientGenerator to typing helper

* Use `dict[str, Any]` again

* Use JsonObjectType

* Add cast
2023-02-09 12:15:18 +01:00
epenetandGitHub ecb1d93b2e Allow pytest to start before black finishes (#87770)
Speed-up CI
2023-02-09 11:57:15 +01:00
epenetandGitHub bb174780b9 Apply registry type hints on mqtt platform tests (#87758)
Apply registry fixture types on platform tests
2023-02-09 11:53:56 +01:00
epenetandGitHub 678d1e367d Refactor onewire options flow tests (#87711) 2023-02-09 11:52:26 +01:00
Franck NijhofandGitHub 330e1c6cbb Clean up unnecessary registry mocks from integration tests (#87763) 2023-02-09 10:43:45 +01:00
John PettittandGitHub 59890cca68 Fix bad battery sense in ambient_station (#87668) 2023-02-09 10:36:05 +01:00
Franck NijhofandGitHub 14c19a2456 Trigger full CI on recorder test changes (#87764) 2023-02-09 10:19:39 +01:00
J. Nick KostonandGitHub 77cdde94f3 Turn back off test_shutdown_before_startup_finishes test on MySQL (#87761) 2023-02-09 03:12:10 -06:00
Jan BouwhuisandGitHub df76e31cdf Apply MQTT fixture types on platform tests (#87722)
* Apply MQTT fixture types on platform tests

* Add caplog type hint

* Add hass_ws_client type hint

* Add tmp_path type hint

* Add hass_client_no_auth type hint
2023-02-09 09:48:22 +01:00
J. Nick KostonandGitHub b0cbe5cb69 Bump yalexs_ble to 1.12.12 to fix reconnect when services fail to resolve (#87664)
* Bump yalexs_ble to 1.12.11 to fix reconnect when services fail to resolve

changelog: https://github.com/bdraco/yalexs-ble/compare/v1.12.8...v1.12.11

* bump to make it work with esphome proxy as well

* empty
2023-02-09 09:35:33 +01:00
starkillerOGandGitHub bcf8cf4d8b Add reolink https webhook warning (#87332)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
fixes undefined
2023-02-09 09:24:18 +01:00
epenetandGitHub c946f684bc Add more type hints to conftest (#87755)
* Add pytest type hints to conftest

* Add bluetooth and integration frame
2023-02-09 09:20:05 +01:00
Erik MontnemeryandGitHub 58618b2978 Improve recorder tests to use MariaDB / PostgreSQL (#87756) 2023-02-09 02:18:20 -06:00
Erik MontnemeryandGitHub b0f5bdd504 Improve migration tests to use MariaDB / PostgreSQL database (#87753) 2023-02-09 08:42:32 +01:00