Commit Graph
42623 Commits
Author SHA1 Message Date
alim4randGitHub 7d256f56c5 Refactor Prometheus tests (#60451)
* Removed prometheus from .coveragerc

* Update prometheus tests with handler categories

* Updated prometheus metrics to use the current registry
- don't use the registry created on import (needed for tests)

* Reset the prometheus CollectorRegistry before every test

* Update prometheus metrics generation
- Use latest registry when generating a response

* Add default collectors when resetting the registry

* Move entities to the specific prometheus test case

* Refactor body generation for prometheus tests

* Add test case for sensors without unit after rebase

* Fix prometheus tests
- Wait for events in prometheus tests
- Add workaround for demo platform dependecy conversation (aiohttp frozen router)

* Added prometheus tests for attribute metrics

* Added prometheus tests for binary_sensor

* Add prometheus test for input_boolean

* Add prometheus test for lights

* Add prometheus test for lock

* Add prometheus test for sensor fahrenheit conversion

* Fix prometheus test for input_number
2021-12-08 20:18:21 +01:00
Erik MontnemeryandGitHub 159506262a Skip duplicated data when calculating fossil energy consumption (#60599) 2021-12-08 10:59:26 -08:00
Milan MeulemansandGitHub dbe0a801c6 Use _attr_* in whois integration (#61250) 2021-12-08 10:58:46 -08:00
40828e221e Use new DeviceClass enums in abode (#61244)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:58:01 -08:00
d03b73eb23 Use new DeviceClass enums in accuweather (#61246)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:36 -08:00
d79169ca2e Use new DeviceClass enums in acmeda (#61248)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:18 -08:00
b5f7e14985 Use new DeviceClass enums in ads (#61249)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:56:59 -08:00
Jan BouwhuisandGitHub 17a542689f Fix pvoutput template use and REST integer parsing (#61171)
* Fix pvoutput template use and REST integer parsing

* revert accepting templates as input
2021-12-08 19:32:25 +01:00
jjlawrenandGitHub 9f3a4c3617 Improve Sonos tests, begin adding coverage (#61198)
* Update entity registry handling

* Add and use fixtures to test setup via config entry

* Remove legacy redundant tests

* Remove unnecessary mock_coro

* Remove unnecessary namespace change

* Move zeroconf payload to fixture

* Begin adding Sonos to codecov

* Mock proper return value

* Revert return value for platform
2021-12-08 19:28:27 +01:00
Dave TandGitHub af91addc6c Use SensorDeviceClass and SensorStateClass enums in Aurora ABB (#61245) 2021-12-08 18:01:52 +01:00
Erik MontnemeryandGitHub f30eb05870 Refactor recorder queue handling (#61161)
* Refactor recorder queue handling

* Address pylint's concerns

* Implement workaround for mypy bug

* Address review comments
2021-12-08 16:54:26 +01:00
Thomas DietrichandGitHub bbe6d3c9ae Statistics refactor testcases in async pytest style (#60935)
* Implement optional manually defined uniqueid

* Fix test case via mocked environment

* Refactor testcases

* Fix missing awaits

* Revert order changes, reduce use of block command

* Tidy up mocked time testcases
2021-12-08 16:53:18 +01:00
Erik MontnemeryandGitHub 5169ee69c7 Attempt to fix flaky prometheus test (#61242) 2021-12-08 16:08:02 +01:00
9f15e7dcf4 Fix flaky tests around frame helper (#61179)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:50:56 +01:00
Daniel Hjelseth HøyerandGitHub 9a46e802b7 Address late review of Adax (#61200)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-08 10:04:13 +01:00
J. Nick KostonandGitHub d5aa4a9ce1 Updating naming for flux_led (#61187) 2021-12-08 09:30:22 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fad5314154 Bump actions/upload-artifact from 2.2.4 to 2.3.0 (#61215)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-08 09:06:06 +01:00
Paulus SchoutsenandGitHub b7539fc0de Fix islamic prayer times timestamp sensor (#61207) 2021-12-07 23:39:27 -08:00
Paulus SchoutsenandGitHub 7b3a7ee2d1 Jewish Calendar: Do not convert datetimes to UTC (#61222) 2021-12-07 23:38:52 -08:00
Paulus SchoutsenandGitHub c8fbf4c339 don't convert GTFS timestamp to UTC in timestamp sensor (#61221) 2021-12-08 08:26:45 +01:00
Paulus SchoutsenandGitHub a81026ea90 Fix follow-up review comment for bbox (#61219) 2021-12-07 23:14:21 -08:00
Paulus SchoutsenandGitHub 1ca8df9584 Fix hydrawise timestamp sensor (#61206) 2021-12-07 22:56:22 -08:00
Paulus SchoutsenandGitHub 6b6b60b589 Fix hvv_departures timestamp sensor (#61205) 2021-12-07 22:56:07 -08:00
Paulus SchoutsenandGitHub ef70dec7a4 Fix Rova using strings as timestamp (#61201) 2021-12-07 22:55:43 -08:00
Paulus SchoutsenandGitHub e011073789 Fix gtfs timestamp sensor (#61204) 2021-12-07 22:49:43 -08:00
Paulus SchoutsenandGitHub 113a850c69 Fix flipr timestamp sensor (#61203) 2021-12-07 22:48:04 -08:00
Paulus SchoutsenandGitHub fa75c1f92f Fix bbox timestamp (#61202) 2021-12-07 22:47:38 -08:00
Paulus SchoutsenandGitHub 271b798dc9 Fix lyric timestamp sensor (#61209)
* Fix lyric timestamp sensor

* Update type
2021-12-07 22:46:45 -08:00
Paulus SchoutsenandGitHub 2c451e6a76 Fix litterrobot timestamp sensor (#61208)
* Fix litterrobot timestamp sensor

* Update type
2021-12-07 22:38:35 -08:00
Paulus SchoutsenandGitHub 566cf9785e Fix modern_forms timestmap sensors (#61211) 2021-12-07 22:35:38 -08:00
Paulus SchoutsenandGitHub 3519ad4309 Fix vallox timestamp sensor (#61216)
* Fix vallox timestamp sensor

* Change old state type
2021-12-07 22:35:13 -08:00
Paulus SchoutsenandGitHub 0780bf142f Fix meteo_france timestamp sensor (#61210) 2021-12-07 22:25:42 -08:00
Paulus SchoutsenandGitHub ea42384afd Fix nextbus timestamp sensor (#61212) 2021-12-07 22:23:14 -08:00
Paulus SchoutsenandGitHub 6257b3e070 Fix oasa_telematics timestamp sensor (#61213) 2021-12-07 22:14:52 -08:00
Paulus SchoutsenandGitHub 4819484cbb Fix yandex_transport timestamp sensor (#61217) 2021-12-07 22:14:28 -08:00
Paulus SchoutsenandGitHub 21f897bb5b Fix repetier timestamp sensors (#61214) 2021-12-07 22:12:26 -08:00
54d55fdf88 Use list comprehension in onewire sensor descriptions (#61157)
* Add 0-3 range to constants

* Use list comprehension in sensor definitions

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-07 23:06:27 -06:00
Daniel Hjelseth HøyerandGitHub 8cee47072d Add local access for Adax (#60019) 2021-12-07 16:48:16 -10:00
J. Nick KostonandGitHub df9154268e Update MagicHome/flux_led OUIs for DHCP discovery (#61192) 2021-12-07 20:15:56 -06:00
J. Nick KostonandGitHub 81dc84aef5 Fix log spam from flux_led 0x08 devices when in music mode (#61196) 2021-12-07 17:20:55 -08:00
J. Nick KostonandGitHub 6b70bd7495 Fix uncaught exception in bond config flow (#61184) 2021-12-07 17:20:38 -08:00
Robert BlomqvistandGitHub ea58778a5c Rephrase upgrade notification message to avoid installing Python 3.10 (#61181) 2021-12-07 17:19:23 -08:00
GitHub Action d69c6e3ab3 [ci skip] Translation update 2021-12-08 00:13:50 +00:00
puddlyandGitHub 1768b19f71 Bump ZHA dependency zigpy-znp from 0.6.3 to 0.6.4 (#61194) 2021-12-07 18:38:34 -05:00
b0affe7bfb Elmax integration (#59321)
* Add elmax integration.

* Run hassfest and generate requirements_all

* Remove secondary platforms from elmax integration as per first component integration.

* Move ElmaxCoordinator and ElmaxEntity into external file
Linting review

* Remove useless variables

* Fix wrong indentation.

* Remove unecessary platforms.

* Remove unnecessary attributes from manifest.

* Rely on property getters/setters rathern than private attribute from parent.
Update internal entity state just after transitory state update.

* Update homeassistant/components/elmax/const.py

Reference Platform constant

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>

* Update username/password values

Rely on already-present templating constants

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>

* Add missing constant import.

* Remove unnecessary test_unhandled_error() callback implementation.

* Add common.py to coverage ignore list.

* Improve coverage of config_flow.

* Rename the integration.

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Fix reauth bug and improve testing.

* Refactor lambdas into generators.

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-07 22:42:55 +01:00
7c7df5bb51 Change check for existence of options flow (#61147)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-07 12:50:34 -08:00
Erik MontnemeryandGitHub 4a814405c2 Minor deduplication of condition validation code (#61170) 2021-12-07 11:55:16 -08:00
einarhauksandGitHub dced4d4542 Display energy in wh instead of kWh (#61169) 2021-12-07 11:33:24 -08:00
Allen PorterandGitHub 6d867e0415 Bump nest to 0.4.5 to fix media player event expiration (#61174) 2021-12-07 11:30:23 -08:00
Aaron BachandGitHub 9af8d59a7a Bump py17track to 2021.12.2 (#61166) 2021-12-07 11:29:54 -08:00