Commit graph

21711 commits

Author SHA1 Message Date
epenet
18722aeccb
Improve type hints and fix pylint warnings in util tests (#119355) 2024-06-11 15:07:40 +02:00
epenet
e14146d7c9
Fix consider-using-with pylint warnings in matrix tests (#119365) 2024-06-11 15:06:44 +02:00
epenet
2e9f63ced6
Fix use-maxsplit-arg pylint warnings in tests (#119366) 2024-06-11 15:06:16 +02:00
epenet
65befcf5d4
Fix import pylint warning in core tests (#119359) 2024-06-11 15:04:00 +02:00
epenet
e57bac6da8
Fix confusing-with-statement pylint warnings (#119364) 2024-06-11 15:03:03 +02:00
epenet
1974ea4fdd
Improve type hints in yaml util tests (#119358) 2024-06-11 15:01:54 +02:00
epenet
5abdc83b2e
Fix non-parent-init-called pylint warning in google_assistant tests (#119367) 2024-06-11 15:00:23 +02:00
epenet
d376371c25
Fix pylint warnings in testing config custom components (#119370) 2024-06-11 14:59:49 +02:00
epenet
2c7022950c
Fix import-outside-toplevel pylint warnings in tests (#119389) 2024-06-11 14:57:50 +02:00
epenet
43db0e457c
Fix pylint warnings in xiaomi tests (#119373) 2024-06-11 14:56:53 +02:00
Erik Montnemery
f9cf7598da
Fix missing checks in core config test (#119387) 2024-06-11 14:13:12 +02:00
Erik Montnemery
904b89df80
Allow importing typing helper in core files (#119377)
* Allow importing typing helper in core files

* Really fix the circular import

* Update test
2024-06-11 13:48:12 +02:00
epenet
572700a326
Ignore c-extension-no-member pylint warnings in tests (#119378) 2024-06-11 12:57:43 +02:00
epenet
18f30d2ee9
Fix pointless-string-statement pylint warning in emulated_hue tests (#119368) 2024-06-11 11:57:54 +02:00
G Johansson
fc915dc1bf
Calculate attributes when entity information available in Group sensor (#119021) 2024-06-11 09:26:44 +02:00
kaareseras
511547c29a
Fix Azure data explorer (#119089)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-11 09:18:06 +02:00
epenet
08eb8232e5
Fix namespace-import pylint warning in shelly tests (#119349) 2024-06-11 08:08:47 +02:00
epenet
a3ac0af56d
Ignore some pylint errors in component tests (#119352) 2024-06-11 08:01:52 +02:00
epenet
4320445c30
Use absolute import in roborock tests (#119353) 2024-06-11 07:59:46 +02:00
epenet
ecad1bef7e
Avoid cross-domain imports in scrape tests (#119351) 2024-06-11 07:57:45 +02:00
Paulus Schoutsen
0ea9581cfc
OpenAI to respect custom conversation IDs (#119307) 2024-06-11 07:49:14 +02:00
Joakim Plate
958a456275
Allow source sensor to be changed in threshold helper (#119157)
* Allow source sensor to be changed in threshold helper

* Make sure old device link is removed on entry change

* Add test case for changed association
2024-06-11 06:41:29 +02:00
Jake Martin
9bb9792607
Move runtime_data deletion after unload (#119224)
* Move runtime_data deletion after unload.

Doing this before unload means we can't use, eg. the coordinator, during teardown.

* Re-order config entry on unload

* Add test

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-06-10 22:11:07 -04:00
J. Nick Koston
8855289d9c
Migrate august to use yalexs 6.0.0 (#119321) 2024-06-10 21:50:11 +02:00
Erik Montnemery
def9d5b101
Fix statistic_during_period after core restart (#119323) 2024-06-10 21:44:55 +02:00
Bas Brussee
b30a924e03
Add price service call to Tibber (#117366)
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-06-10 21:16:51 +02:00
Sid
6184fd26d3
Add options flow to enigma2 (#115795)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-06-10 21:13:12 +02:00
Brett Adams
4a9ebd9af1
Refactor helpers and bump Teslemetry (#119246) 2024-06-10 21:12:09 +02:00
Quentin
04c8a5574a
Fix elgato light color detection (#119177) 2024-06-10 20:58:15 +02:00
Jan Bouwhuis
51d78c3c25
Improve incomfort binary sensors (#119292)
* Improve incomfort binary_sensor, add is_burning, is_pumping and is_tapping

* Update test snapshot

* Use helper for fault code label name

* Update tests

* Remove extra state attribute

* Make default Fault `none` to supprt localization

* Update snapshot
2024-06-10 20:57:36 +02:00
epenet
650cf13bca
Improve type hints in aiohttp_client helper tests (#119300) 2024-06-10 20:31:19 +02:00
J. Nick Koston
612743077a
Improve workday test coverage (#119259) 2024-06-10 20:26:52 +02:00
epenet
eb6af2238c
Improve type hints in registry helper tests (#119302) 2024-06-10 20:25:34 +02:00
karwosts
aa419686cb
Fix statistic_during_period wrongly prioritizing ST statistics over LT (#115291)
* Fix statistic_during_period wrongly prioritizing ST statistics over LT

* comment

* start of a test

* more testcases

* fix sts insertion range

* update from review

* remove unneeded comments

* update logic

* min/mean/max testing
2024-06-10 20:23:21 +02:00
epenet
ac08cd1201
Revert SamsungTV migration (#119234) 2024-06-10 20:20:25 +02:00
Josef Zweck
42b984ee4f
Migrate lamarzocco to lmcloud 1.1 (#113935)
* migrate to 1.1

* bump to 1.1.1

* fix newlines docstring

* cleanup entity_description fns

* strict generics

* restructure import

* tweaks to generics

* tweaks to generics

* removed exceptions

* move initialization, websocket clean shutdown

* get rid of duplicate entry addign

* bump lmcloud

* re-add calendar, auto on/off switches

* use asdict for diagnostics

* change number generator

* use name as entry title

* also migrate title

* don't migrate title

* remove generics for now

* satisfy mypy

* add s

* adapt

* migrate entry.runtime_data

* remove auto/onoff

* add issue on wrong gw firmware

* silence mypy

* remove breaks in ha version

* parametrize issue test

* Update update.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* regen snapshots

* mapping steam level

* remove commented code

* fix typo

* coderabbitai availability tweak

* remove microsecond moving

* additonal schedule for coverage

* be more specific on date offset

* keep mappings the same

* config_entry imports sharpened

* remove unneccessary testcase, clenup date moving

* remove superfluous calendar testcase from diag

* guard against future version downgrade

* use new entry for downgrade test

* switch to lmcloud 1.1.11

* revert runtimedata

* revert runtimedata

* version to helper

* conistent Generator

* generator from typing_extensions

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-06-10 19:59:39 +02:00
Jan Bouwhuis
d6bcb1c5fd
Add HVACAction to incomfort climate devices (#119315)
* Add HVACAction to incomfort climate devices

* Use IDLE state when not heating
2024-06-10 19:23:12 +02:00
William Taylor
30fab7b807
Add support for animal detection in unifiprotect (#116290)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-06-10 10:16:36 -05:00
chammp
52379ad7cb
Add code_format_template to template locks (#106947)
* Add code_format to template locks

* Replace code_format with code_format_template

* Add test case for template eval to None

* Apply suggestion to not call super()

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

* Add more negative tests

* Handle template render errors

* Better error message

* Add custom test lock config for code format

* Add type hints from upstream

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-06-10 16:54:17 +02:00
epenet
c896458fcf
Fix namespace-import pylint warning in components (#119299) 2024-06-10 15:55:08 +02:00
epenet
fbaba3753b
Fix root-import pylint warning in components (#119294)
* Fix root-import pylint warning in components

* Adjust

* Adjust
2024-06-10 15:14:49 +02:00
epenet
94b9ae14c9
Use Registry fixture in zwave_js tests (#119277) 2024-06-10 15:00:05 +02:00
epenet
6733f86c61
Use service_calls fixture in helper tests (#119275)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-06-10 14:57:34 +02:00
Sébastien Clément
80b2b05bd8
Change qBittorrent lib to qbittorrentapi (#113394)
* Change qBittorrent lib to qbittorrentapi

* Fix tests

* Convert qbittorrent service to new lib

* Add missing translation key

* Catch APIConnectionError in service call

* Replace type ignore by Any typing

* Remove last type: ignore

* Use lib type for torrent_filter

* Change import format

* Fix remaining Any type

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-06-10 14:27:20 +02:00
epenet
2e3c3789d3
Use relative imports in tests [s-z] (#119283) 2024-06-10 13:33:15 +02:00
epenet
ac588ddc75
Use relative imports in tests [j-r] (#119282) 2024-06-10 13:32:31 +02:00
epenet
94720fd015
Fix root-import pylint warning in dlna_dmr tests (#119286) 2024-06-10 13:31:29 +02:00
epenet
8cbfc5a58b
Use service_calls fixture in arcam_fmj tests (#119274) 2024-06-10 13:09:51 +02:00
epenet
b8e57f6174
Use relative imports in tests [a-i] (#119280) 2024-06-10 12:52:34 +02:00
epenet
42f3dd636f
Use service_calls fixture in bthome tests (#119268) 2024-06-10 10:05:47 +02:00