epenet
d5568ff955
Standardize homeassistant imports in full-CI components ( #136731 )
...
Standardize homeassistant imports in components
2025-01-28 13:11:19 -05:00
Joost Lekkerkerker
b4f4b06f29
Enable RUF021 ( #135832 )
2025-01-17 10:20:45 +01:00
Marc Mueller
4f20977a8e
Update mypy-dev to 1.14.0a2 ( #129625 )
2024-11-02 19:15:50 +01:00
karwosts
3cbadb1bd2
Add a missing translation for energy error ( #128413 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-16 22:04:59 +02:00
Erik Montnemery
5ee418724b
Tweak type annotations of energy websocket handlers ( #119957 )
2024-06-19 20:01:02 +02:00
Marc Mueller
3b4b36a9fd
Fix partial typing ( #118022 )
2024-05-24 10:24:18 +02:00
Marc Mueller
87bb7ced79
Use PEP 695 for simple type aliases ( #117633 )
2024-05-17 14:42:21 +02:00
Marc Mueller
b21632ad05
Improve energy platform typing ( #117003 )
2024-05-07 11:28:42 -05:00
Marc Mueller
8257af1b22
Improve energy typing ( #116034 )
2024-04-23 17:33:36 +02:00
karwosts
77d1e2c812
Allow customizing display name for energy device ( #112834 )
...
* Allow customizing display name for energy device
* optional typing and comment
2024-04-12 20:31:51 +02:00
J. Nick Koston
2649dfaa11
Fix ruff-format on energy sensor ( #114261 )
2024-03-26 10:05:55 -10:00
J. Nick Koston
f982473e53
Small performance improvements to energy sensors ( #114149 )
2024-03-26 09:40:06 -10:00
J. Nick Koston
00f94feec9
Start energy load platform task eagerly ( #113778 )
2024-03-19 08:44:39 +01:00
Marc Mueller
0e3945ca6c
Add empty line after module docstring [d-f] ( #112698 )
2024-03-08 14:15:26 +01:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration ( #112467 )
2024-03-05 21:16:42 -10:00
Joost Lekkerkerker
730d805876
Enable SIM114 ruff rule ( #111125 )
2024-02-23 13:21:59 +01:00
J. Nick Koston
0d4c82b54d
Convert Integration platforms processors where nothing is awaited to callbacks ( #110825 )
...
Convert Integration platforms processors where nothing is awaited callbacks
2024-02-17 20:49:47 -05:00
Excentyl
46d626280e
Initialize energy_state without price ( #97031 )
...
Co-authored-by: Erik <erik@montnemery.com>
2023-12-08 17:46:08 +01:00
Jan-Philipp Benecke
017c699e19
Let the statistics component calculate changes in fossil energy consumption calculation ( #101557 )
2023-10-21 10:06:12 -10:00
Robert Resch
bb90c1f168
Fix multilevel reference translations ( #102338 )
2023-10-20 08:12:53 +02:00
Erik Montnemery
687e69f7c3
Fix unit conversion for gas cost sensor ( #99708 )
2023-09-06 10:35:04 +02:00
karwosts
9b0d4c8c03
Fix a translation bug for water price issue ( #96958 )
2023-07-21 13:00:18 +02:00
Erik Montnemery
e25fbecfdc
Add missing super() call to EnergyCostSensor.add_to_platform_abort ( #94322 )
2023-06-09 11:28:12 +02:00
Erik Montnemery
ef68f2c3ff
Add empty config schema to integrations d-h ( #93645 )
2023-05-29 21:00:08 +02:00
J. Nick Koston
460d04fc07
Disable polling on energy sensors ( #93651 )
...
These sensors do not implement async_update so no
polling is needed
2023-05-27 19:54:40 -04:00
rlippmann
f5911bcad6
Add slots to dataclasses in default_config ( #91410 )
...
* add dataclass slots to default config items
* remove slots from sun mixing
2023-04-14 14:22:39 -04: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
epenet
9e6f869438
Set Protocol inheritance on EnergyPlatform ( #89079 )
2023-03-03 11:57:41 +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
J. Nick Koston
ea356ad260
Optimize fetching weekly/monthly/yearly statistics ( #87747 )
...
* Optimize fetching statistics
* speed up
* avoid double groupby
* avoid another loop
* tweak flow
* fixes
* tweak
* avoid a new dt object in the cache for week/month
* avoid a new dt object in the cache for week/month
2023-02-09 21:22:32 -05:00
Erik Montnemery
78c9b70c8d
Sort manifests 3 ( #87024 )
2023-02-08 20:19:19 +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
GitHub Action
0f80932709
[ci skip] Translation update
2023-02-02 00:25:01 +00:00
GitHub Action
be73e43989
[ci skip] Translation update
2023-02-01 00:27:42 +00:00
GitHub Action
072f228e4d
[ci skip] Translation update
2023-01-28 00:23:36 +00:00
SgtBatten
0ccab19d2c
Add Mega Joule as valid unit of energy ( #86055 )
...
* Add Mega joule
* Reorder valid energy types
Alphabetical
* Add Mega Joule
* Add Mega Joule as valid energy unit
* Add Mega Joule
* Add Mega Joule as a Unit of Measurement to Energy
* Update tests
* Update tests
* Update number docstring
Co-authored-by: Roving Ronin <108674933+Roving-Ronin@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-01-25 14:13:42 +01:00
GitHub Action
613aa6f43a
[ci skip] Translation update
2023-01-24 00:24:57 +00:00
Marc Mueller
8abce25948
Update Union typing (4) [Py310] ( #86427 )
2023-01-23 09:04:40 +01:00
GitHub Action
771e07c68b
[ci skip] Translation update
2023-01-22 00:25:52 +00:00
GitHub Action
e1483ff746
[ci skip] Translation update
2023-01-21 00:24:12 +00:00
GitHub Action
d1ecc418bb
[ci skip] Translation update
2023-01-19 00:25:04 +00:00
GitHub Action
87b2a73460
[ci skip] Translation update
2023-01-18 00:24:40 +00:00
lunmay
8485588aca
Fix typo in energy: misplaced closing brace ( #86027 )
2023-01-17 14:34:27 +01:00
GitHub Action
d2e11797f8
[ci skip] Translation update
2023-01-17 00:24:30 +00:00
GitHub Action
b81453cb6b
[ci skip] Translation update
2023-01-16 00:24:22 +00:00
GitHub Action
77f9548e51
[ci skip] Translation update
2023-01-15 00:25:52 +00:00
Erik Montnemery
8418a30cc0
Refactor energy validation issue reporting ( #85523 )
...
* Refactor energy validation issue reporting
* Update English translations
* Adjust translations
2023-01-12 12:50:43 +01:00
epenet
b578d08e8a
Adjust valid energy units ( #85190 )
2023-01-05 13:00:46 +01:00
epenet
9a488cf250
Use unit enums in energy and sensor ( #84343 )
2022-12-21 10:49:51 +01:00