Commit graph

42685 commits

Author SHA1 Message Date
epenet
7215244c17
Use new DeviceClass and EntityCategory enums in advantage_air ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:19:10 -08:00
epenet
fd58c1eff5
Use new SensorDeviceClass enums in aemet ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:18:14 -08:00
epenet
048bdd321e
Use new DeviceClass and StateClass enums in airly ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:41 -08:00
epenet
25224f6945
Use new SensorStateClass enum in airnow ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:20 -08:00
epenet
646da7a9b7
Use new EntityCategory enum in airthings ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:03 -08:00
epenet
e460eec134
Use new CoverDeviceClass enum in aladdin_connect ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:16:43 -08:00
epenet
c1a09d2bac
Use new DeviceClass and StateClass enums in ambee ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:59 -08:00
epenet
549b72e48e
Use new SensorStateClass enum in amberelectric ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:33 -08:00
epenet
e4e0dcbae0
Use new BinarySensorDeviceClass enum in amcrest ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:18 -08:00
epenet
8a11cf3d1f
Use new DeviceClass, StateClass and EntityCategory enums in ambient_station ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 13:06:31 -07:00
epenet
c71fe71654
Use new SensorDeviceClass enum in airvisual ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:49:02 -07:00
Paulus Schoutsen
77a74a9bf4
Fix smartthings timestamp sensor () 2021-12-08 11:44:53 -08:00
alim4r
7d256f56c5
Refactor Prometheus tests ()
* 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 Montnemery
159506262a
Skip duplicated data when calculating fossil energy consumption () 2021-12-08 10:59:26 -08:00
Milan Meulemans
dbe0a801c6
Use _attr_* in whois integration () 2021-12-08 10:58:46 -08:00
epenet
40828e221e
Use new DeviceClass enums in abode ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:58:01 -08:00
epenet
d03b73eb23
Use new DeviceClass enums in accuweather ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:36 -08:00
epenet
d79169ca2e
Use new DeviceClass enums in acmeda ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:18 -08:00
epenet
b5f7e14985
Use new DeviceClass enums in ads ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:56:59 -08:00
Jan Bouwhuis
17a542689f
Fix pvoutput template use and REST integer parsing ()
* Fix pvoutput template use and REST integer parsing

* revert accepting templates as input
2021-12-08 19:32:25 +01:00
jjlawren
9f3a4c3617
Improve Sonos tests, begin adding coverage ()
* 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 T
af91addc6c
Use SensorDeviceClass and SensorStateClass enums in Aurora ABB () 2021-12-08 18:01:52 +01:00
Erik Montnemery
f30eb05870
Refactor recorder queue handling ()
* 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 Dietrich
bbe6d3c9ae
Statistics refactor testcases in async pytest style ()
* 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 Montnemery
5169ee69c7
Attempt to fix flaky prometheus test () 2021-12-08 16:08:02 +01:00
epenet
9f15e7dcf4
Fix flaky tests around frame helper ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:50:56 +01:00
Daniel Hjelseth Høyer
9a46e802b7
Address late review of Adax ()
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-08 10:04:13 +01:00
J. Nick Koston
d5aa4a9ce1
Updating naming for flux_led () 2021-12-08 09:30:22 +01:00
dependabot[bot]
fad5314154
Bump actions/upload-artifact from 2.2.4 to 2.3.0 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-08 09:06:06 +01:00
Paulus Schoutsen
b7539fc0de
Fix islamic prayer times timestamp sensor () 2021-12-07 23:39:27 -08:00
Paulus Schoutsen
7b3a7ee2d1
Jewish Calendar: Do not convert datetimes to UTC () 2021-12-07 23:38:52 -08:00
Paulus Schoutsen
c8fbf4c339
don't convert GTFS timestamp to UTC in timestamp sensor () 2021-12-08 08:26:45 +01:00
Paulus Schoutsen
a81026ea90
Fix follow-up review comment for bbox () 2021-12-07 23:14:21 -08:00
Paulus Schoutsen
1ca8df9584
Fix hydrawise timestamp sensor () 2021-12-07 22:56:22 -08:00
Paulus Schoutsen
6b6b60b589
Fix hvv_departures timestamp sensor () 2021-12-07 22:56:07 -08:00
Paulus Schoutsen
ef70dec7a4
Fix Rova using strings as timestamp () 2021-12-07 22:55:43 -08:00
Paulus Schoutsen
e011073789
Fix gtfs timestamp sensor () 2021-12-07 22:49:43 -08:00
Paulus Schoutsen
113a850c69
Fix flipr timestamp sensor () 2021-12-07 22:48:04 -08:00
Paulus Schoutsen
fa75c1f92f
Fix bbox timestamp () 2021-12-07 22:47:38 -08:00
Paulus Schoutsen
271b798dc9
Fix lyric timestamp sensor ()
* Fix lyric timestamp sensor

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

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

* Change old state type
2021-12-07 22:35:13 -08:00
Paulus Schoutsen
0780bf142f
Fix meteo_france timestamp sensor () 2021-12-07 22:25:42 -08:00
Paulus Schoutsen
ea42384afd
Fix nextbus timestamp sensor () 2021-12-07 22:23:14 -08:00
Paulus Schoutsen
6257b3e070
Fix oasa_telematics timestamp sensor () 2021-12-07 22:14:52 -08:00
Paulus Schoutsen
4819484cbb
Fix yandex_transport timestamp sensor () 2021-12-07 22:14:28 -08:00
Paulus Schoutsen
21f897bb5b
Fix repetier timestamp sensors () 2021-12-07 22:12:26 -08:00
epenet
54d55fdf88
Use list comprehension in onewire sensor descriptions ()
* 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øyer
8cee47072d
Add local access for Adax () 2021-12-07 16:48:16 -10:00