Commit graph

255 commits

Author SHA1 Message Date
Jan Rieger
74a57e8676
Use more common translations (#100135) 2023-09-12 19:44:31 +02:00
Daniel Hjelseth Høyer
d88ee0dbe0
Update Tibber library to 0.28.2 (#99115) 2023-09-02 15:08:49 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device (#96479)
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Daniel Hjelseth Høyer
7e686db4be
Tibber upgrade lib, improve reconnect issues (#96276)
Tibber upgrade lib, improve recoonect issues

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2023-07-11 14:09:20 -04:00
tronikos
faacf1658f
Fix error in tibber while fetching latest statistics (#93998) 2023-06-03 08:25:39 -05:00
J. Nick Koston
89d8bda4ba
Bump pyTibber to 0.27.2 (#92136) 2023-04-27 22:00:07 +02:00
Daniel Hjelseth Høyer
9d3a0d676a
Update tibber lib to 0.27.1 (#92016) 2023-04-25 13:40:48 -05:00
epenet
86b4354477
Improve native_value type hints in integrations (#90033) 2023-03-21 11:40:06 +01: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
J. Nick Koston
a6d6807dd0
Add typing to statistics results (#89118) 2023-03-14 09:06:56 -10: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
Toni Juvani
f69aa7ad9d
Update pyTibber to 0.27.0 (#86940)
* Update pyTibber to 0.27.0

* Handle new exceptions
2023-03-02 10:11:34 -05:00
Martin Hjelmare
08aae9cccd
Remove tibber monthly cost state class (#88542) 2023-02-21 15:39:15 +01:00
Daniel Hjelseth Høyer
e96210fced
Fix Tibber stats (#88025) 2023-02-14 08:14:10 -06:00
Daniel Hjelseth Høyer
e0235fbb30
Update tibber lib 0.26.13 (#88018) 2023-02-13 16:46:25 -06:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Erik Montnemery
b0b1d8143f
Sort manifests 10 (#87031) 2023-02-08 20:41:50 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
BasBruss
5422ef239b
Fix monetary state class in tibber (#87274)
state_class=SensorStateClass.TOTAL for monetary data
2023-02-03 09:02:23 -05:00
Daniel Hjelseth Høyer
54900ca25f
Update pyTibber to 0.26.12 (#87098) 2023-02-01 18:04:24 +01:00
Daniel Hjelseth Høyer
50800d2590
Update pyTibber to 0.26.11 (#86316) 2023-01-21 00:01:17 +01:00
Daniel Hjelseth Høyer
a818ef6411
Update pyTibber to 0.26.8 (#86044) 2023-01-16 22:16:34 +01:00
Daniel Hjelseth Høyer
2757f97114
Update pyTibber to 0.26.8 (#85702)
* Tibber, update pyTibber

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tibber, update pyTibber

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2023-01-12 03:15:28 +01:00
epenet
1766df3faa
Improve integration type hints for diagnostics (#85526) 2023-01-09 15:17:48 +01:00
Daniel Hjelseth Høyer
be9010f459
Update Tibber lib to 0.26.7. Improve error handling of realtime data (#85008) 2023-01-02 22:16:38 +01:00
Marc Mueller
1de41ab123
Improve DataUpdateCoordinator typing in integrations (1) (#84655) 2022-12-27 22:44:25 +01:00
Daniel Hjelseth Høyer
61e13bf84d
Improve Tibber rt Pulse streaming (#84313)
Improve rt Pulse streaming

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-21 05:59:52 +01:00
epenet
3168b30535
Use new unit enumerators in tibber (#84222) 2022-12-19 10:54:18 +01:00
Daniel Hjelseth Høyer
8e3953a9d5
Update Tibber lib, improve realtime streaming (#84065)
Update tibber lib, improve realtime streaming

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-16 12:11:54 -07:00
epenet
0184aadb09
Use UnitOfElectricPotential in integrations (#84044) 2022-12-15 13:59:21 +01:00
epenet
52d4a358a0
Use UnitOfPower in integrations [s-z] (#83826) 2022-12-12 12:20:16 +01:00
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
Daniel Hjelseth Høyer
dc3401c94e
Update tibber lib to 0.26.4, improve logging (#83418) 2022-12-06 20:08:27 +01:00
GitHub Action
3ab9a14ce7 [ci skip] Translation update 2022-12-06 00:21:31 +00:00
Daniel Hjelseth Høyer
949ebeeb97
Update pyTibber to 0.26.3 (#83175)
Update Tibber lib 0.26.3

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-03 12:30:03 +01:00
Daniel Hjelseth Høyer
845ce5c6ea
Tibber, fix date parsing (#83067)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-01 20:36:46 +02: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
GitHub Action
230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
GitHub Action
b65d8cc1b3 [ci skip] Translation update 2022-11-28 00:23:09 +00:00
Daniel Hjelseth Høyer
093bd00807
Update pyTibber to 0.26.1 (#82787)
* Update tibber library, 0.26.0

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* 0.26.1

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-11-27 16:46:42 +01:00
GitHub Action
f3b3193f7a [ci skip] Translation update 2022-11-25 00:24:19 +00:00
Erik Montnemery
607a0e7697
Reduce size of get_statistics_during_period WS API response (#82131) 2022-11-16 17:36:30 +01:00
Martin Hjelmare
ecb7509333
Add tibber price sensor state class (#82189) 2022-11-16 15:12:08 +01:00
ztamas83
5040b94330
Retry tibber setup (#81785)
* Handle integration setup retries

* Fix black error

* Update to falsy check

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove duplicated log

* Update exception message

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-11-08 16:09:58 +01:00
Daniel Hjelseth Høyer
e3233f72ce
Tibber strict typing (#79407)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-10-26 12:41:23 +02:00
mnorrsken
d5e26326dc
Bump pyTibber to 0.25.4 (#80316) 2022-10-14 16:03:48 +02:00
Erik Montnemery
2de273500e
Remove state_unit_of_measurement from metadata DB table (#79370)
* Remove state_unit_of_measurement from metadata DB table

* Adjust test
2022-10-01 18:55:00 +02:00
Erik Montnemery
dd20a7ea62
Display statistics in the source's unit (#78031) 2022-09-15 12:01:24 -04:00