J. Nick Koston
bb4c03ce3c
Avoid returning statistics columns that the metadata knows are impossible ( #92095 )
2023-04-30 20:46:26 +02:00
J. Nick Koston
5ffb233004
Avoid database executor job to fetch statistic metadata on cache hit ( #89960 )
...
* Avoid database executor job to fetch statistic metadata on cache hit
Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job
* Avoid database executor job to fetch statistic metadata on cache hit
Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job
* Avoid database executor job to fetch statistic metadata on cache hit
Since we will almost always have a cache hit fetching
statistic meta data we can avoid an executor job
* remove exception catch since the threading.excepthook will actually catch this in production
* fix a few missed ones
* threadsafe
* Update homeassistant/components/recorder/table_managers/statistics_meta.py
* coverage and optimistic caching
2023-03-19 22:01:16 -04:00
epenet
a0f725dfcb
Add type hints to tests ( #89497 )
2023-03-10 12:06:50 +01:00
ztamas83
811e286f0f
Test coverage for Tibber config flow ( #89088 )
...
* Test coverage for Tibber config flow
* Fix isort and ruff errors
2023-03-05 20:38:47 -05:00
epenet
88cfbf6a34
Add type hints to integration tests (part 22) ( #88234 )
2023-02-16 14:08:03 +01:00
J. Nick Koston
c35661947a
Optimize fetching statistics by avoiding timestamp conversions ( #87845 )
...
* Optimize fetching statistics by avoiding timestamp conversions
* remove accidential unrelated change
* fix test
* recreate so we handle timezone changes
2023-02-10 11:26:46 -05:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Daniel Hjelseth Høyer
87b6bb45d0
Remove home id from Tibber diagnostics ( #83066 )
...
Tibber diagnostic
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-01 20:24:17 +02:00
Erik Montnemery
607a0e7697
Reduce size of get_statistics_during_period WS API response ( #82131 )
2022-11-16 17:36:30 +01:00
Erik Montnemery
31a787558f
Ensure recorder test fixture is setup before hass fixture ( #80528 )
...
* Ensure recorder test fixture is setup before hass fixture
* Adjust more tests
2022-10-19 07:58:47 +02:00
Erik Flodin
9e66b30af9
Add new sensors for energy produced (via Tibbber) ( #76165 )
...
The new sensors tibber:energy_(production|profit)_<home_id> are like the
existing consumption/totalCost ones except that they report outgoing
energy instead of incomeing.
2022-08-23 10:02:58 +02:00
Erik Montnemery
28ebab9c5a
Simplify waiting for recorder in tests ( #70647 )
2022-04-25 12:04:47 +02:00
Erik Montnemery
982e314de6
Use recorder_mock in tests ( #70363 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-22 19:29:44 -10:00
Daniel Hjelseth Høyer
549afff307
Tibber diagnostics ( #64472 )
...
Co-authored-by: Philip Allgaier <mail@spacegaier.de>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-20 15:03:14 +01:00
Daniel Hjelseth Høyer
0e0ef0aa17
Tibber cost statistics ( #63626 )
...
* Tibber cost statistics
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber cost statistics
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* unit
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* unit
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Update homeassistant/components/tibber/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tibber/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* break lines
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-09 12:20:53 +01:00
Daniel Hjelseth Høyer
ba1b09a3a5
Add external Tibber statistics ( #62249 )
...
* Tibber, add external statistics
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber, add external statistics
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber ext stats
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Add tests
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* name
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-01-05 09:33:12 +01:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Daniel Høyer Iversen
5a2528b0f1
Tibber config flow ( #34469 )
...
* tibber config, wip
* read config from yaml
* sync requirements
* style
* add model property
* unique id
* unique id
* Tibber config, unique id
* test doc
* tibber config, update title
* append _el_price
* Update homeassistant/components/tibber/__init__.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* unique id
* tibber config flow
* tibber config flow
* fix test for python 3.8
* update test imports
* move _async_current_entries
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-05-03 14:40:19 +02:00