Marc Mueller
dd22ee3dac
Improve annotation styling ( #118032 )
2024-05-24 15:05:53 +02:00
epenet
d4df86da06
Move TibberDataCoordinator to separate module ( #118027 )
2024-05-24 11:05:54 +02:00
Bas Brussee
658c1f3d97
Fix Tibber sensors state class ( #117085 )
...
* set correct state classes
* revert bool to pass mypy locally
2024-05-17 09:10:08 -04:00
Daniel Hjelseth Høyer
830e8d7b94
Fix statistic bug in Tibber sensor ( #116112 )
...
* Handle keyError in Tibber sensor
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Constant
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
---------
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2024-04-24 20:00:06 +02:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
Joost Lekkerkerker
96cebdf096
Improve lists in integrations [T-U] ( #113243 )
2024-03-13 17:54:46 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Joakim Sørensen
e691e45017
Use description key instead of name for Tibber RT unique ID ( #112035 )
...
* Use translation key instead of name for Tibber RT unique ID
* migration
* use decription.key instead
2024-03-02 17:48:27 +01:00
Marc Mueller
8b0c9d3d18
Use builtin TimeoutError [t-z] ( #109683 )
2024-02-05 12:20:36 +01:00
Jan-Philipp Benecke
a6c697c80f
Add entity name translations to Tibber ( #108797 )
2024-02-02 14:03:21 +01:00
Jan-Philipp Benecke
95aea1488d
Add pylint plugin to check if coordinator is placed in its own module ( #108174 )
...
* Add pylint plugin to check if coordinator is placed in its own module
* Remove unintended changes
* Remove pylint disable and let CI only fail on W,E,F
* Make check conventional
* Apply review suggestion
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use option instead
* Remove pylint arguments from pre-commit
* Partially revert "Remove pylint disable and let CI only fail on W,E,F"
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-29 10:30:19 +01: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
tronikos
faacf1658f
Fix error in tibber while fetching latest statistics ( #93998 )
2023-06-03 08:25:39 -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
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
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
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
Marc Mueller
1de41ab123
Improve DataUpdateCoordinator typing in integrations (1) ( #84655 )
2022-12-27 22:44:25 +01:00
epenet
3168b30535
Use new unit enumerators in tibber ( #84222 )
2022-12-19 10:54:18 +01: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
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
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
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
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
epenet
458001a06e
Improve entity type hints [t] ( #77883 )
2022-09-06 13:35:52 +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
Daniel Hjelseth Høyer
40fba130e8
Tibber, Use a dedicated executor pool for database operations ( #69208 )
2022-04-03 20:22:03 +02:00
Marc Mueller
830cc278d3
Improve CoordinatorEntity
typing ( #68441 )
2022-03-21 10:22:30 +01:00
Marc Mueller
67e94f2b4b
Add type ignore error codes [N-Z] ( #66779 )
2022-02-18 09:41:12 +01:00
Daniel Hjelseth Høyer
3733aa9494
Add more sensors for users with Tibber Pulse ( #66201 )
...
* Tibber, Add stats and sensors for homes with real time meter
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber stats
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Monthly peak hour
2022-02-10 08:47:34 +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
04796c4410
Add missing last_rest
in Tibber ( #61914 )
2022-01-07 16:57:52 +01:00
epenet
a4fdaffb14
Add setup type hints [t-u] ( #63480 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 17:19:19 +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
Daniel Hjelseth Høyer
9c749682bf
Add Tibber peak hour, monthly consumption and monthly cost sensors ( #61853 )
...
* Tibber, Consumption data
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber sensors
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber, Consumption data
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Add peak_hour_time
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-17 12:55:16 +01:00
Daniel Hjelseth Høyer
b1b3079d07
Add Tibber estimated hour consumption sensor ( #62003 )
2021-12-16 12:15:40 +01:00
Daniel Hjelseth Høyer
eae1e669d0
Use new EntityCategory enum in Tibber ( #61279 )
2021-12-08 22:04:11 +01:00
Daniel Hjelseth Høyer
ecf1bc1b22
Use state class enum in Tibber ( #60729 )
2021-12-01 15:50:35 +01:00
Daniel Hjelseth Høyer
bcb2fefbe5
Use device class enum in Tibber ( #60705 )
2021-12-01 11:00:17 +01:00
Daniel Hjelseth Høyer
70b8decfb5
Replace Tibber STATE_CLASS_TOTAL_INCREASING with STATE_CLASS_TOTAL for not strictly increasing sensors ( #60501 )
...
* Tibber, fix #60490 not strictly increasing
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber, fix #60490 not strictly increasing
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tibber, fix #60490 not strictly increasing
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-11-29 08:22:48 +01:00
Daniel Hjelseth Høyer
bb99d07d82
Remove unused constant in Tibber ( #60439 )
2021-11-27 11:18:58 +01:00