1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-05 22:49:17 +00:00

46 Commits

Author SHA1 Message Date
epenet
f0af33bd2b
Add missing hass type hint in component tests (i) () 2024-08-19 12:40:17 +02:00
epenet
e4731c07cb
Add monkeypatch to enforce-type-hints plugin () 2024-07-05 11:35:56 +02:00
Marc Mueller
921430d497
Import Generator from collections.abc (3) () 2024-07-01 12:09:11 +02:00
Marc Mueller
fcfb580f0c
Update pylint to 3.2.4 () 2024-06-26 22:29:55 +02:00
Marc Mueller
33ed4fd862
Import Generator from typing_extensions (3) () 2024-06-06 17:28:59 +02:00
epenet
b54a68750b
Add type hints for FixtureRequest in tests () 2024-06-04 10:37:54 +02:00
J. Nick Koston
bb9330135d
Fix race in influxdb test ()
The patch was still too late in 

There is no good candidate to patch here since the late operation
is the error log that is being tested.

Patching the logger did not seem like a good idea so I went with
patching to wait for the error to be emitted since emit is the public
API of the log handler and was less likely to change
2024-04-13 09:13:01 +02:00
J. Nick Koston
e3680044fe
Fix flakey influxdb test () 2024-04-11 13:26:03 -10:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ()
* Unignore Ruff PLR in tests

* Address review comments

* review comments

* fix import

* Update test_api.py

* Update test_api.py

* Update test_api.py
2024-04-01 11:11:59 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ()
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] () 2024-03-08 14:50:04 +01:00
J. Nick Koston
3b93c21d9d
Switch influxdb to use a SimpleQueue () 2024-02-29 12:49:43 -10:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma () 2023-08-10 14:27:03 +02:00
J. Nick Koston
dc5ee71d7a
Add slots to core EventBus () 2023-07-05 11:47:24 -05: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
epenet
1e352b60df
Add type hints to integration tests (part 11) () 2023-02-13 14:22:49 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 () 2023-02-03 23:08:48 +01:00
Franck Nijhof
3ff3834cae
Re-enable Ruff UP024 () 2023-01-27 12:03:27 +01:00
Franck Nijhof
79b52a2b41
Stricter pylint message control () 2023-01-20 13:47:55 +01:00
Mike Degatano
051374d73e
Handle state is None in InfluxDB () 2022-10-04 21:43:57 +03:00
J. Nick Koston
a8349a4866
Adjust entity filters to make includes stronger than excludes ()
* Adjust entity filters to make includes stronger than excludes

Fixes 

* adjust test for stronger entity glob includes

* sync with docs
2022-06-28 11:42:51 -05:00
Mike Degatano
c1967abfca
Bump influxdb-client dependency to 1.24.0 () 2022-01-05 12:45:41 +01:00
Ville Skyttä
ce1eda9809
Use http.HTTPStatus in components/[ikl]* () 2021-10-22 23:06:18 +02:00
Franck Nijhof
ad13a9295e
Merge multiple context managers in tests () 2021-03-27 09:17:15 +01:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is () 2021-03-20 13:55:10 +01:00
Alessandro Pilotti
8222eb5e3e
Allow Influxdb CA path in verify_ssl () 2021-02-01 23:29:31 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Rob Bierbooms
92f89213a3
Fix InfluxDB v2 API with write precision None () 2020-10-16 16:44:50 +02:00
Mark Bergsma
5fd2acdbef
Add influxdb config option 'measurement_attr' () 2020-10-14 22:49:57 +02:00
twdkeule
052e8f0983
Add Influxdb precision option () 2020-09-19 04:42:03 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
mdegat01
16e5d02794
Add ignore_attributes option to influxdb ()
* Added ignore_attributes option and tests

* adjusted config for overlapping customization with ignore attrs
2020-07-16 09:42:02 +02:00
Paulus Schoutsen
8ed1a29c82
Drop white blacklist pt1 () 2020-07-13 17:43:11 +02:00
mdegat01
24289d5dbb
Refactor Influx logic to reduce V1 vs V2 code paths ()
* refactoring to share logic and sensor startup error test

* Added handling for V1 InfluxDBServerError to start-up and runtime and test for it

* Added InfluxDBServerError test to sensor setup tests

* Raising PlatformNotReady exception from sensor for setup failure

* Proper testing of PlatformNotReady error
2020-06-30 20:02:25 +02:00
mdegat01
b96ce9c210
Additional testing for InfluxDB and some quality improvements ()
* refactoring and added tests to sensor

* using caplog and not mocking main setup method in sensor tests
2020-06-29 17:31:49 +02:00
mdegat01
d454f85572
Add support for glob matching in InfluxDB filters ()
* added support for glob filtering to influx

* removed print and using dataclass instead of namedtuple
2020-06-27 00:01:32 +02:00
mdegat01
f9bc0c9dab
Add influx 2.0 and InfluxCloud support to InfluxDB integration () 2020-06-12 21:29:46 +02:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup () 2020-06-08 12:26:40 -07:00
springstan
eae21be5b9
Improve string formatting v6 () 2020-04-07 23:14:28 +02:00
Franck Nijhof
906385172a
String formatting improvements for tests () 2020-04-05 00:26:08 +02:00
springstan
f1a0ca7cd3
Add and use percentage constant ()
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Bas Nijholt
14779ce3d0 Sort imports according to PEP8 for components starting with "I" () 2019-12-09 14:21:24 +01:00
springstan
27530be46f Move imports to top for influxdb () 2019-12-06 17:35:35 +05:30
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
b8cc547fa3
Move components to folders ()
* Move all components into folders

* Move component tests into folders

* Fix init moving

* Move tests

* Lint

* Update coverage

* Fix service descriptions

* Update CODEOWNERS
2019-02-05 19:31:15 -08:00