Commit graph

59007 commits

Author SHA1 Message Date
Jan Bouwhuis
b93c135c8d
Add type hints for MQTT discovery tests ()
* Add type hints for MQTT discovery tests

* Remove more unused caplog instances

* rebase commit

* Small corrections

* Add event tye hint and correct string assignment

* Another Event type hint

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

* Correct test_complex_discovery_topic_prefix

* Import individual items from homeassistant.core

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-08 20:56:27 +01:00
Erik Montnemery
b0b1d8143f
Sort manifests 10 () 2023-02-08 20:41:50 +01:00
Erik Montnemery
1d64ba9d34
Sort manifests 6 () 2023-02-08 20:38:43 +01:00
Erik Montnemery
90d7fb8418
Sort manifests 5 () 2023-02-08 20:35:25 +01:00
Erik Montnemery
1450b44c63
Sort manifests 7 () 2023-02-08 20:32:43 +01:00
Erik Montnemery
231aad7a68
Sort manifests 1 () 2023-02-08 20:29:44 +01:00
Franck Nijhof
51a9f65a01
Clean up unnecessary registry mocks from Core tests () 2023-02-08 13:28:44 -06:00
Erik Montnemery
899adef590
Sort manifests 4 () 2023-02-08 20:27:05 +01:00
Erik Montnemery
23fa500406
Sort manifests 9 () 2023-02-08 20:22:30 +01:00
Erik Montnemery
78c9b70c8d
Sort manifests 3 () 2023-02-08 20:19:19 +01:00
Erik Montnemery
87420e949d
Sort manifests 2 () 2023-02-08 20:16:39 +01:00
Erik Montnemery
5dfb9cddd6
Sort manifests 8 () 2023-02-08 20:13:46 +01:00
Erik Montnemery
6c2702a7b8
Sort manifests 11 () 2023-02-08 20:10:18 +01:00
Erik Montnemery
2246255e90
Create or import thread active dataset when setting up OTBR ()
* Create a thread active dataset when discovering OTBR

* Align with lib changes

* Use thread preferred dataset if set

* Create a dataset also from the user flow
2023-02-08 19:32:19 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) () 2023-02-08 19:10:53 +01:00
epenet
f75ac17554
Add type hints to integration tests (j-m) () 2023-02-08 19:06:59 +01:00
Martin Hjelmare
630028106a
Refactor tradfri cover tests ()
* Refactor tradfri cover tests

* Complete typing
2023-02-08 18:31:04 +01:00
epenet
37a2040d7b
Add type hints to integration tests (h-i) () 2023-02-08 18:12:56 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) () 2023-02-08 18:08:43 +01:00
Jan Bouwhuis
1a414f1433
Add hass and None return type on MQTT platform tests ()
Add hass and `None` return type on MQTT tests
2023-02-08 18:08:03 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) () 2023-02-08 08:12:54 -08:00
epenet
3abf7ea18a
Add type hints to integration tests (m-p) () 2023-02-08 07:48:54 -08:00
Franck Nijhof
6551eb168d
Add common area, device, entity and issue registry test fixtures () 2023-02-08 16:28:44 +01:00
Erik Montnemery
94519de8dd
Upgrade SQLAlchemy to 2.0.2 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-08 08:17:32 -06:00
Erik Montnemery
93dafefd96
Include entity options in RegistryEntry.as_partial_dict () 2023-02-08 08:32:46 -05:00
epenet
7a4d15a657
Add type hints to integration tests (f-g) () 2023-02-08 13:33:52 +01:00
epenet
3052de3e8e
Add type hints to integration tests (d-e) () 2023-02-08 13:01:44 +01:00
starkillerOG
5e214f2e43
Reolink unregistered webhook on unexpected error () 2023-02-08 12:23:27 +01:00
epenet
2545694d41
Add type hints to integration tests (a) ()
* Add type hints to accuweather tests

* Adjust a** components

* Adjust aiohttp_client

* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
Franck Nijhof
7665c89b83
Remove sneaked in translation from TP-Link Omada () 2023-02-08 11:54:18 +01:00
Franck Nijhof
1c3713d08f
Add studio mode switch to Elgato () 2023-02-08 11:42:53 +01:00
Jan Bouwhuis
fc7e4b7664
Add type hints on common MQTT tests ()
* Add hints for hass and return type

* Fix MqttMockType add apply hints to test_common

* Add type hints for other arguments

* Merge changes

* Add missed annotation

* Make tests types private and move to top
2023-02-08 11:20:27 +01:00
Franck Nijhof
0bf612fa63
Add entity descriptions in Elgato buttons () 2023-02-08 11:09:31 +01:00
Erik Montnemery
45ac8c515e
Update unit system unit conversions ()
* Update unit system unit conversions

* Tweak tests
2023-02-08 10:52:54 +01:00
Franck Nijhof
c3e733c0aa
Replace global test markers with fixtures in Devolo home control tests () 2023-02-08 10:51:25 +01:00
epenet
a4c4f77f73
Add more fixtures to pylint plugin () 2023-02-08 10:51:09 +01:00
Franck Nijhof
380bfe5b28
Enable Ruff PT002, PT003 () 2023-02-08 10:50:53 +01:00
Franck Nijhof
6582367917
Add battery sensor to Elgato () 2023-02-08 10:22:12 +01:00
Franck Nijhof
e749521b29
Replace global test markers with fixtures in Synology DSM tests () 2023-02-08 09:42:57 +01:00
epenet
c98b4e3204
Add typing to tests with single hass argument (2) ()
* Add typing to tests with single hass argument (2)

* a few more
2023-02-08 08:51:43 +01:00
Luke
1bbc03d0ba
Bump oralb-ble to 0.17.5 ()
fixes undefined
2023-02-07 20:01:36 -06:00
J. Nick Koston
f0118b3d30
Bump cryptography to 39.0.1 for CVE-2023-23931 ()
Bump cryptography to 39.0.1

CVE-2023-23931
2023-02-07 20:30:16 -05:00
Jc2k
d829a2045a
Fix incorrect unique_id for BLE HomeKit devices () 2023-02-07 19:10:51 -06:00
Thomas Hollstegge
79f385afde
Add myself as codeowner for emulated_hue () 2023-02-07 15:43:47 -06:00
Franck Nijhof
cc3ae5b19b
Mark ESPHome update entity unavailable when device is offline () 2023-02-07 22:15:54 +01:00
Kevin Worrel
c505975940
Use library data to map state class for ScreenLogic ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-07 14:13:06 -06:00
Arturo
e84a11963e
Add color support to matter lights ()
* Added the correct attributes to ColorTemperatureLight and ExtendedColorLight and added CurrentY to codespell ignore word list

* Added enums for matter color modes

* Added support for reading color and color temperature settings from matter api

* Added away of getting the ColorControl featureMap while the get_cluster(ColorControl) function is fixed

* Initial working implementation of color and color temperature

* Full supports for lights with both hs and xy

* Added checks to make sure color features are supported before making matter call

* Changed how color mode is figured out

* Moved the logic that gets the brightness to its own function

* Adds matter light tests for hass triggered events

* Adds full test coverage for matter all types of matter lights

* Adds full test coverage for matter all types of matter lights

* Moved light convertion logic to util.py

* Reorderd codespell ignore list and removed unused code

* Adds brightness state test
2023-02-07 20:44:02 +01:00
shbatm
096f6eb554
Bump PyISY to 3.1.13, check portal for network buttons () 2023-02-07 13:03:27 -06:00
Thomas Hollstegge
589ff54e63
Do not return cached values for entity states in emulated_hue ()
* Do not return cached values for state and brightness

* Move building the uncached state dict behind a lru_cache (_build_entity_state_dict)

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-07 13:39:08 -05:00
J. Nick Koston
1170b36a82
Fix LD2410 BLE detection with passive scans () 2023-02-07 13:38:48 -05:00