dougiteixeira
a8ba22f6bb
Add device linking and stale device link clean up helpers ( #119761 )
2024-06-21 14:46:39 +02:00
Diogo Gomes
8cf1890772
Moves diagnostic information from attributes to diagnostic in Utility Meter ( #118637 )
...
* move diag information from attributes to diagnostic
* remove constant attributes
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-06-15 12:50:19 +02:00
dougiteixeira
cd80b9b318
Remove obsolete device links in Utility Meter helper ( #119328 )
...
* Make sure we update the links between the devices and config entries when the changes source device
2024-06-13 23:44:13 +02:00
J. Nick Koston
5a609c34bb
Fix blocking I/O in the event loop when loading timezones ( #117721 )
2024-05-20 11:06:03 +02:00
Diogo Gomes
450c57969a
Add diagnostic platform to utility_meter ( #114967 )
...
* Add diagnostic to identify next_reset
* Add test
* add next_reset attr
* Trigger CI
* set as _unrecorded_attributes
2024-05-14 15:20:59 +02:00
gibwar
e403b50ddc
Only reset requested utility meter with no tariff ( #115170 )
2024-04-08 10:05:46 +02:00
Marc Mueller
0f03079065
Update import for EventStateChangedData [i-z] ( #114900 )
2024-04-04 11:48:29 -10:00
J. Nick Koston
be3c923c7f
Use eager_start to load utility_meter platforms ( #114699 )
2024-04-02 22:06:16 -10:00
Erik Montnemery
5b98a8458f
Improve device class of utility meter ( #114368 )
2024-03-28 13:24:44 +01:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Diogo Gomes
3e3cf45a5d
Bump croniter to 2.0.2 ( #113494 )
2024-03-15 12:00:08 +01:00
Joost Lekkerkerker
796d0381cc
Add service icons to Utility meter ( #113419 )
...
* Add service icons to Utility meter
* Add service icons to Utility meter
* Update homeassistant/components/utility_meter/icons.json
Co-authored-by: Diogo Gomes <diogogomes@gmail.com>
* Update homeassistant/components/utility_meter/icons.json
Co-authored-by: Diogo Gomes <diogogomes@gmail.com>
---------
Co-authored-by: Diogo Gomes <diogogomes@gmail.com>
2024-03-14 16:48:13 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
3db28d46b2
Replace EventType with Event [t-z] ( #112742 )
2024-03-08 19:37:26 +01:00
Marc Mueller
cb8c14496c
Use more f-strings [ruff] ( #112695 )
2024-03-08 18:44:42 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
gibwar
52fe0a5e96
Fix utility meter reset without tarrifs ( #102884 )
...
* Fix utility meter reset without tarrifs
When using a utility_meter helper set up with a "Meter reset cycle" of
"No cycle" it is impossible to properly reset the meter to 0 and utilize
the "last reset" and "last period" attributes on the helper.
With these changes the service call can now directly reset a meter in
such a configuration and the UI selector has been updated to include
utility meters in the selection list.
Fixes #96920
* Undo UI target selection modes
As requested to not cause confusion by being able to reset individual
meters when using multiple tariffs.
* Adjust logic to only reset standalone sensors
The original logic would allow resetting meters with multiple tariffs
which was an unintended side effect.
2024-03-01 16:44:24 +01:00
J. Nick Koston
332db5093f
Migrate utility_meter to use async_update_entry to alter config entries ( #110394 )
2024-02-12 19:51:16 +01:00
Jan-Philipp Benecke
f18448950c
Add icon translations to Utility meter helper ( #109656 )
2024-02-04 23:21:57 +01:00
Diogo Gomes
12289f172d
Filter only utility_meter select entities in reset service ( #108855 )
...
filter reset service to only utility_meters
2024-01-25 20:46:45 +01:00
dougiteixeira
7713cf377d
Add utility meter option for the sensor to always be available ( #103481 )
...
* Adds option for the sensor to always be available
* Remove logger debug
* Add migration config entry version
* Update homeassistant/components/utility_meter/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/utility_meter/sensor.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Remove migration config entry version
* Change CONF_SENSOR_ALWAYS_AVAILABLE optional in CONFIG_SCHEMA
* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests
* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests
* Remove CONF_SENSOR_ALWAYS_AVAILABLE in tests
* Add option in yaml
* Update homeassistant/components/utility_meter/strings.json
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/utility_meter/strings.json
Co-authored-by: Robert Resch <robert@resch.dev>
* Changes tests
* Add test_always_available
* Use freezegun
* Update homeassistant/components/utility_meter/strings.json
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-25 20:46:33 +01:00
Diogo Gomes
7c94293cb4
Fix utility_meter reset when DST change occurs ( #103012 )
2023-10-30 09:46:20 +01:00
Diogo Gomes
553cdfbf99
Always update unit of measurement of the utility_meter on state change ( #99102 )
2023-09-10 08:29:38 -05: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
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Marc Mueller
8c870a5683
Use EventType for state changed [m-z] ( #97118 )
2023-07-24 08:07:07 +02:00
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] ( #97065 )
2023-07-22 17:03:44 -05:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script ( #96384 )
...
* Add deduplicate script
* Fix forecast_solar incorrect key with space
* Fix utf-8
* Do not create references to other arbitrary other integrations
* Add commented code to only allow applying to referencing integrations
* Tweak
* Bug fix
* Add command line arg for limit reference
* never suggest to update common keys
* Output of script
* Apply suggestions from code review
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof
4edec69637
Migrate integration services (T-V) to support translations ( #96379 )
2023-07-12 07:37:13 +02:00
dougiteixeira
75bdb03363
Fix source device when source entity is changed for Utility Meter ( #95636 )
...
* Fix source device when source entity is changed
* Update loop
* Complement and add comments in the test_change_device_source test
* Only clean up dev reg when options change
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-07-02 22:46:21 -04:00
dougiteixeira
0431e031ba
Fix device source for Utility Meter select ( #95624 )
...
Fix Device Source
2023-06-30 14:48:11 -04:00
dougiteixeira
f2f0c38fae
Fix device source for Utility Meter ( #95585 )
...
* Fix Device Source
* Remove debug
2023-06-29 21:52:48 -04:00
dougiteixeira
39229ce098
Add the device of the source entity in the helper entities for Utility Meter ( #94734 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-06-26 18:08:13 +02:00
ollo69
62ccecb690
Change utility_meter log level for invalid old state ( #93026 )
2023-05-24 09:10:51 +02:00
Diogo Gomes
86fe0c9683
Track availability of source sensor in utility meter ( #91035 )
...
* track availability of source sensor
* address review comments
2023-04-10 12:37:45 -04:00
Diogo Gomes
fe393c84e2
Delay utility_meter until HA has started ( #91017 )
...
* increase information for end user
* only warn after home assistant has started
* delay utility_meter until HA has startED
2023-04-08 10:36:34 -04:00
epenet
d0c38c1e12
Move icon constants to entity attributes ( #90518 )
...
* Move icon constants to attribute
* Adjust test
2023-03-31 09:34:17 +02:00
Wesley Vos
478a1d5e9a
Add periodically resetting meter option to utility meter ( #88446 )
...
* Use last valid state if meter is not periodically resetting
* Fix unload of entry, used during options flow submit
* Adjustments based on code review
* Move DecimalException handling to validation method
* Add test for invalid new state in calculate_adjustment method
2023-03-28 17:09:20 +02:00
Erik Montnemery
b0b1d8143f
Sort manifests 10 ( #87031 )
2023-02-08 20:41:50 +01:00
Marc Mueller
ea4e2ab4aa
Add Self typing (4) [mypy 1.0] ( #87601 )
2023-02-06 22:30:22 -06: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
ce79b26ab6
[ci skip] Translation update
2023-02-03 00:25:31 +00: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
0f6f63da64
[ci skip] Translation update
2023-01-29 00:26:29 +00:00
GitHub Action
71d7098530
[ci skip] Translation update
2023-01-27 00:25:12 +00:00
GitHub Action
7ab88fa713
[ci skip] Translation update
2023-01-26 00:23:39 +00:00
GitHub Action
9636fe4602
[ci skip] Translation update
2023-01-25 00:24:21 +00:00
Jan Bouwhuis
c97cf62b47
Add translation support for utility_meter type in config flow ( #86220 )
...
* Add translation support for utility_meter type
* Remove redundant labels
2023-01-24 12:52:26 +01:00
GitHub Action
4d215e573c
[ci skip] Translation update
2023-01-23 00:23:13 +00:00