Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Jan-Philipp Benecke
b49505b390
Add reauth flow to co2signal ( #104507 )
2023-11-26 20:45:45 +01:00
Jan-Philipp Benecke
94995f560f
Add sensor tests to co2signal ( #104464 )
2023-11-24 21:35:36 +01:00
Jan-Philipp Benecke
724352d55c
Use AsyncMock and fixtures in co2signal tests ( #104041 )
2023-11-24 18:56:58 +01:00
Jan-Philipp Benecke
685537e475
Exchange co2signal package with aioelectricitymaps ( #101955 )
2023-11-13 13:48:33 -06:00
Jan-Philipp Benecke
2eefd21dcc
Parametrize more co2signal config flow tests ( #100882 )
...
* Clean up co2signal tests
* Some more clean up
* Use named parameter ids of parametrize
2023-09-25 22:21:40 +02:00
Jan-Philipp Benecke
b9a3863645
Handle json decode exception in co2signal ( #100857 )
...
* Handle json decode exception in co2signal
* Update homeassistant/components/co2signal/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fix import
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-09-25 21:21:01 +02:00
Joost Lekkerkerker
faa4489f4c
Use snapshot assertion for Co2signal diagnostics test ( #98905 )
2023-08-24 01:18:49 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) ( #87698 )
2023-02-08 18:08:43 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
ollo69
0876239927
Do not redact diagnostics empty key ( #69160 )
2022-04-03 13:17:08 +02:00
Paulus Schoutsen
a827d91e3a
Add CO2signal diagnostics ( #64646 )
2022-01-21 20:20:59 +01:00
Robert Hillis
cabcb52fb3
Remove deprecated yaml config from co2signal ( #62343 )
2021-12-20 13:49:15 +01:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Paulus Schoutsen
962ddf664c
Add country code to co2signal state attributes ( #53512 )
2021-07-26 11:10:39 -07:00
Paulus Schoutsen
c49decb7f0
Convert CO2Signal to data update coordinator and add fossil fuel percentage ( #53370 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
2021-07-23 14:35:11 -07:00
Daniel Hjelseth Høyer
f0b28c90bf
Co2signal configflow ( #53193 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-07-19 21:30:00 -07:00