Commit graph

13784 commits

Author SHA1 Message Date
Jan Bouwhuis
57738fbb8c
Replace deprecated SSLContext constant PROTOCOL_TLS in mqtt ()
Replace deprecated SSLContext constants
2023-02-16 13:01:28 -05:00
J. Nick Koston
d2277fa6db
Fix restore of MQTT subscriptions from reload () 2023-02-16 11:14:26 -06:00
epenet
88cfbf6a34
Add type hints to integration tests (part 22) () 2023-02-16 14:08:03 +01:00
epenet
ba23816a0c
Inverse json import logic ()
* Fix helpers and util

* Adjust components

* Move back errors

* Add report

* mypy

* mypy

* Assert deprecation messages

* Move test_json_loads_object

* Adjust tests

* Fix rebase

* Adjust pylint plugin

* Fix plugin

* Adjust references

* Adjust backup tests
2023-02-16 11:37:57 +01:00
epenet
dab8557951
Add type hints to integration tests (part 21) () 2023-02-16 11:15:26 +01:00
Brandon Rothweiler
0748e12341
Fix capitalization of OwnTone integration () 2023-02-16 10:16:32 +01:00
J. Nick Koston
c83ea297b5
Refactor zeroconf task handling ()
* Refactor zeroconf task handling

- Avoid the need to create tasks for most callbacks
- Fixes the untracked task that could get unexpectedly GCed

* be consistant

* be consistant

* fix zeroconf tests

* runtime

* Revert "runtime"

This reverts commit 19e6b61837.

* precalc

* refactor

* tweak

* update tests
2023-02-15 21:44:11 -05:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ()
* Update Ruff to v0.0.247

* Fix new found violations
2023-02-15 16:46:03 -05:00
Marcel van der Veldt
dfe0ededa0
Bump python-matter-server to 2.1.0 ()
* Bump python-matter-server to 2.1.0

* Fix tests

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-15 13:23:03 -05:00
J. Nick Koston
c8b827b46b
Fix aprs tests with python 3.11 ()
* Fix aprs tests with python 3.11

* hints
2023-02-15 13:03:48 -05:00
Erik Montnemery
80e2f96097
Add WS command thread/delete_dataset ()
* Add WS command thread/delete_dataset

* Return not_allowed when trying to delete the preferred dataset
2023-02-15 12:55:10 -05:00
J. Nick Koston
4221433ca6
Account for changed python3.11 enum.IntFlag 0 behavior in zha () 2023-02-15 11:40:48 -06:00
epenet
80ee196fd8
Add type hints to integration tests (part 19) () 2023-02-15 18:07:40 +01:00
Jc2k
f5a05c1bd2
Support HomeKit Controller Thread Provisioning () 2023-02-15 16:41:07 +00:00
Jan Bouwhuis
03e9dff327
Allow resetting MQTT climate attributes and ignore empty values ()
Allow reseting MQTT climate attributes
2023-02-15 16:31:49 +01:00
J. Nick Koston
61539686a4
Disable profiler.memory service with python 3.11 () 2023-02-15 16:20:47 +01:00
Erik Montnemery
6254200b37
Fix otbr tests () 2023-02-15 16:19:46 +01:00
mkmer
2af4d2152b
Honeywell disable detergent level by default ()
* Disable fill by default

* Fix tests

* use TANK_FILL.get

* Remove None from attribute get
add reload to sensor test

* Typing
fix iteration error
2023-02-15 16:01:20 +01:00
Gertjan
66ba0cb1d3
Fixed float number validation in sensor component () 2023-02-15 15:53:44 +01:00
epenet
3a9adacdde
Add type hints to integration tests (part 20) () 2023-02-15 15:23:34 +01:00
Erik Montnemery
8613d60c5e
Add WS command for discovering Thread routers ()
* Add WS command for discovering Thread routers

* Fix type annotations

* Mock zeroconf in tests

* Key discovery by external MAC address

* Add tests

* Include hostname in data, allow missing fields

* Fix typo

* Include server instead of hostname
2023-02-15 15:15:29 +01:00
epenet
c7fc90f8a0
Adjust imports in rflink test_init () 2023-02-15 15:11:22 +01:00
Franck Nijhof
f67ebcade1
Enable Ruff SIM201 () 2023-02-15 14:43:02 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
J. Nick Koston
6f38bc274a
Fix netatmo with python 3.11 () 2023-02-15 14:02:33 +01:00
epenet
b21bf8763e
Fix mobile app regression accepting sensor states ()
* Fix mobile app regression accepting sensor states

* Adjust tests
2023-02-15 07:17:19 -05:00
Franck Nijhof
9030ca05b1
Enable Ruff SIM118 () 2023-02-15 12:39:12 +01:00
epenet
2cdc741900
Add type hints to integration tests (part 17) () 2023-02-15 11:14:04 +01:00
Mike Heath
04e9c7748f
Support Fully Kiosk Browser device discovery via MQTT ()
Support FKB device discovery via MQTT
2023-02-15 11:11:04 +01:00
epenet
88444b2e0c
Add type hints to integration tests (part 16) () 2023-02-15 10:50:02 +01:00
epenet
6c430e03bc
Add type hints to integration tests (part 14) () 2023-02-15 10:31:43 +01:00
Thomas Dietrich
a0e0feb444
Statistics component fix device_class for incremental source sensors ()
* Return None device_class for incremental source sensors

* Ignore linting error

* Fix ignore linting error

* Fix ignore linting error

* Fix ignore linting error

* Catch potential parsing error with enum
2023-02-15 10:22:09 +01:00
Maciej Bieniek
95bb019f71
Do not reload Shelly TRV entry when not needed ()
* Do not reload the entry when the target temperature changes

* Do not reload the entry when the mode changes

* Increase test coverage

* Increase test coverage
2023-02-15 10:21:53 +01:00
Maciej Bieniek
cd4ce86f07
Add support for triple_push event for Shelly gen2 devices ()
* Add support for triple_push event

* Sort

* Fix tests
2023-02-15 10:20:27 +01:00
epenet
50cbabb2d8
Add type hints to integration tests (part 15) () 2023-02-15 10:00:49 +01:00
Jan Bouwhuis
6c23d6abfe
Fix doc string in mqtt test ()
Fix docstr
2023-02-15 05:56:03 +01:00
Brandon Rothweiler
7cf5fd5952
Fix typo in OpenAI prompt () 2023-02-14 20:33:58 -05:00
J. Nick Koston
44e8e808a1
Fix apprise tests for python 3.11 () 2023-02-14 15:25:25 -05:00
J. Nick Koston
aaeb909148
Fix wemo tests with py3.11 () 2023-02-14 13:58:57 -06:00
J. Nick Koston
4d90d3cd91
Fix vera tests with python3.11 () 2023-02-14 13:58:44 -06:00
J. Nick Koston
e7d5943c90
Fix zwave_me tests with python 3.11 () 2023-02-14 13:58:29 -06:00
Aaron Bach
6bb7a7225d
Revert "Add a calendar entity to Ridwell ()" ()
This reverts commit 16a5275461.
2023-02-14 10:23:32 -07:00
J. Nick Koston
f237bb14ca
Add strict typing to yalexs_ble ()
* Add strict typing to yalexs_ble

* Add strict typing to yalexs_ble

* Add strict typing to yalexs_ble
2023-02-14 11:38:51 -05:00
Teemu R
5335dfbc67
Prefer effect over other light settings for tplink () 2023-02-14 10:29:11 -06:00
J. Nick Koston
c54500cb1f
Fix invalid spec in mqtt tests for py3.11 ()
Fix invalid spec in mqtt tests

unittest.mock.InvalidSpecError: Cannot spec a Mock object.
2023-02-14 11:28:46 -05:00
Aaron Bach
16a5275461
Add a calendar entity to Ridwell () 2023-02-14 06:58:41 -07:00
Martin Hjelmare
e1a5d5a749
Refactor tradfri sensor tests () 2023-02-14 13:35:27 +01:00
Matthias Alphart
d7861e79c5
Update xknx to 2.5.0 () 2023-02-14 12:44:43 +01:00
Paulus Schoutsen
fa5c60c9ee
Handle device reg fields not being valid data in openai conversion ()
Handle device reg fields not being valid data
2023-02-14 11:45:27 +01:00
Paulus Schoutsen
d54f59478f
Keep task references while running ()
* Keep task references while running

* Update pilight tests pointing at correct logger call

* Fix graphite tests

* Fix profiler tests

* More graphite test fixes

* Remove extra sleep

* Fix tests

* Shutdown background tasks as part of stage 1

* Remove unnecessary sleep in test

* Remove unused method on mock hass

* Skip on cancelled too

* Remove background tasks

* Test trigger variables without actually sleeping

* Fix graphite

* One more graphite grrrrrrr
2023-02-13 23:16:59 -05:00