GitHub Action
fc6d45a63b
[ci skip] Translation update
2021-08-20 00:16:03 +00:00
Erik Montnemery
4903c1fbfd
Minor cleanup of SensorEntity ( #54624 )
2021-08-19 12:53:47 +02:00
GitHub Action
4a9a6cd538
[ci skip] Translation update
2021-08-19 00:13:56 +00:00
Erik Montnemery
e1926caeb9
Remove STATE_CLASS_TOTAL and last_reset from sensor ( #54755 )
...
* Remove STATE_CLASS_TOTAL
* Update mill sensor
* Update tests
* Kill last_reset
* Return ATTR_LAST_RESET to utility_meter
* Update energy cost sensor
* Restore last_reset for backwards compatibility
* Re-add and update deprecation warning
* Update tests
* Fix utility_meter
* Update EnergyCostSensor
* Tweak
* Fix rebase mistake
* Fix test
2021-08-18 10:03:27 +02:00
GitHub Action
0100ffcb8c
[ci skip] Translation update
2021-08-18 00:13:44 +00:00
Erik Montnemery
3a78f1fce6
Force STATE_CLASS_TOTAL_INCREASING to reset to 0 ( #54751 )
...
* Force STATE_CLASS_TOTAL_INCREASING to reset to 0
* Tweak
* Correct detection of new cycle
* Fix typing
2021-08-17 23:05:31 +02:00
GitHub Action
1661de5c19
[ci skip] Translation update
2021-08-17 00:12:45 +00:00
Jc2k
de0460de61
Add device classes that were part of deprecated air quality entity ( #54075 )
2021-08-16 23:33:28 +02:00
GitHub Action
a9807e5fa7
[ci skip] Translation update
2021-08-15 00:11:00 +00:00
GitHub Action
370b7f387d
[ci skip] Translation update
2021-08-14 00:11:27 +00:00
Erik Montnemery
029873a088
Add support for total and total_increasing sensor state classes ( #54523 )
...
* Add support for amount and meter sensor state classes
* Ignore last_reset for STATE_CLASS_METER sensors
* Update tests
* Rename STATE_CLASS_METER to STATE_CLASS_AMOUNT_INCREASING
* Rename STATE_CLASS_AMOUNT to STATE_CLASS_TOTAL
* Fix typo
* Log warning if last_reset set together with state_class measurement
* Fix warning message
2021-08-13 12:35:23 +02:00
GitHub Action
b71a0c5d4b
[ci skip] Translation update
2021-08-13 00:17:12 +00:00
GitHub Action
0626542a14
[ci skip] Translation update
2021-08-12 00:14:10 +00:00
Bram Kragten
e23750b2a4
Add device class `gas` and enable statistics for it ( #54110 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-08-11 09:58:19 -07:00
Erik Montnemery
4e07ab1b32
Move temperature conversions to sensor base class (1/8) ( #48261 )
...
* Move temperature conversions to entity base class (1/8)
* Update integrations a-c
* Leave old temperature conversion until all integrations are migrated
* tweak
* Use contextlib.suppress
* Remove the MeasurableUnitEntity mixin
* Address comments, add tests
* Fix f-string
* Drop deprecation warning from base entity class
* Update with _attr-shorthand
* Fix rebase mistakes
* Fix additional rebase mistakes
* Only report temperature conversion once
* Fix additional rebase mistakes
* Format homeassistant/components/bbox/sensor.py
* Fix check for overidden _attr_state
* Remove test workarounds from implementation
* Remove useless None-check
* Tweaks
* Migrate new sensors a-c
* Update climacell
* Push deprecation of temperature conversion forward
* Override __repr__ in SensorEntity
* Include native_value in SensorEntity attributes
* Pylint
* Black
* Black
* Fix rebase mistakes
* black
* Fix rebase mistakes
* Revert changes in august/sensor.py
* Revert handling of unit converted restored state
* Apply code review suggestion
* Fix arlo test
2021-08-11 10:45:05 +02:00
Paulus Schoutsen
f71980a634
Create stats for all sensors that have % unit and are measurement ( #53576 )
2021-07-27 21:56:34 +02:00
Franck Nijhof
0b44265232
Add description classes to entity components ( #53521 )
...
* Add description classes to entity components
* An -> A
* Add StateVacuumEntityDescription
2021-07-27 00:22:21 +02:00
Franck Nijhof
ee452d415d
Add SensorEntityDescription class ( #53357 )
2021-07-26 22:00:43 +02:00
GitHub Action
531733da7b
[ci skip] Translation update
2021-07-19 00:09:50 +00:00
Erik Montnemery
ddc788bf8e
Include future statistics in history/list_statistic_ids ( #52942 )
...
* Include future statistics in history/list_statistic_ids
* Improve tests
2021-07-14 11:54:55 +02:00
Erik Montnemery
19d3aa71ad
Enable basic type checking for recorder ( #52440 )
...
* Enable basic type checking for recorder
* Tweak
2021-07-13 21:21:45 +02:00
GitHub Action
0c5ce9cac2
[ci skip] Translation update
2021-07-07 00:11:57 +00:00
Erik Montnemery
24ae05b734
Drop statistic_id and source columns from statistics table ( #52417 )
...
* Drop statistic_id and source columns from statistics table
* Remove useless double drop of statistics table
* Update homeassistant/components/recorder/models.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* black
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-02 13:17:00 +02:00
Erik Montnemery
16d2dcbfb2
Improve sensor statistics tests ( #52386 )
2021-07-02 09:51:47 +02:00
Erik Montnemery
57fbb1c3d9
Fix sensor statistics collection with empty states ( #52393 )
2021-07-01 14:53:03 +02:00
Erik Montnemery
0476c7f9ee
Normalize temperature statistics to °C ( #52297 )
...
* Normalize temperature statistics to °C
* Fix tests
* Support temperature conversion to and from K, improve tests
* Fix test
* Add tests, pylint
2021-06-30 14:17:58 +02:00
Erik Montnemery
0ab999738b
Add statistics meta data table ( #52331 )
...
* Add statistics meta data table
* Tweak meta data generation
2021-06-30 13:32:17 +02:00
Erik Montnemery
cca5964ac0
Normalize pressure statistics to Pa ( #52298 )
2021-06-29 23:30:13 +02:00
Erik Montnemery
6131ed09f0
Compile statistics for power sensors ( #52299 )
2021-06-29 14:48:08 +02:00
Erik Montnemery
c785db4ffa
Normalize energy statistics to kWh ( #52238 )
2021-06-29 12:20:10 +02:00
Erik Montnemery
a374e24843
Add monetary sensor device class ( #52087 )
...
* Add total_cost sensor device class
* Change to DEVICE_CLASS_MONETARY
2021-06-23 15:32:25 +02:00
Erik Montnemery
06fc21e287
Improve editing of device conditions referencing non-added sensor ( #51835 )
2021-06-14 15:22:31 +02:00
Erik Montnemery
76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA ( #51719 )
2021-06-10 19:11:38 +02:00
Erik Montnemery
a1e3283f8f
Improve editing of device automations referencing non-added sensors ( #51312 )
2021-06-08 23:28:08 -07:00
Erik Montnemery
b339d73109
Weight sensor average statistics by state durations ( #51150 )
...
* Weight sensor average statistics by state durations
* Fix test
2021-05-28 13:16:52 +02:00
Franck Nijhof
f7bc456bd2
Define sensor entity attributes as class variables ( #50942 )
2021-05-22 18:17:35 +02:00
Maciej Bieniek
afb372a680
Add Final type for constants in sensor component ( #50955 )
2021-05-22 13:00:53 +01:00
Erik Montnemery
6f26687aa7
Compile statistics for battery, humidity and pressure sensors ( #50920 )
2021-05-21 10:48:11 +02:00
Daniel Hjelseth Høyer
fd2e640c74
Use sensor constants in recorder ( #50906 )
...
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-05-20 18:23:00 +02:00
Erik Montnemery
e16a8063a5
Compile statistics for energy sensors ( #50829 )
...
* Compile statistics for energy sensors
* Update tests
* Rename abs_value to state
* Tweak
* Recreate statistics table
* Pylint
* Try to fix test
* Fix statistics for multiple energy sensors
* Fix energy statistics when last_reset is not set
2021-05-20 13:05:15 +02:00
Erik Montnemery
5ee362bc34
Store sensor last_reset attribute as a string, not a datetime ( #50851 )
...
* Store last_reset attribute as a string, not a datetime
* Update tests
2021-05-19 12:28:00 -07:00
GitHub Action
1f80defe3a
[ci skip] Translation update
2021-05-18 00:12:13 +00:00
Erik Montnemery
ee4e14e45e
Hoist ATTR_LAST_RESET from utility_meter to SensorEntity ( #50757 )
2021-05-17 13:51:09 +02:00
Erik Montnemery
89dd3292ba
Initial draft of statistics ( #49852 )
2021-05-16 10:23:37 -07:00
HomeAssistant Azure
7df47664e8
[ci skip] Translation update
2021-05-12 00:04:03 +00:00
Erik Montnemery
ba284c0d27
Add sensor state_class property ( #50063 )
...
* Add sensor state_class property
* STATE_CLASS_LATEST -> STATE_CLASS_MEASUREMENT
* Export sensor.state_class in capability_attributes
* Add STATE_CLASS_UNKNOWN
* Fix typing
* Update tests
* STATE_CLASS_UNKNOWN -> STATE_CLASS_OTHER
* Update homeassistant/components/sensor/__init__.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Remove STATE_CLASS_OTHER
* Update tests
* Revert test changes
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-07 23:04:00 +02:00
HomeAssistant Azure
0b4b071c02
[ci skip] Translation update
2021-04-14 00:03:17 +00:00
Martin Hjelmare
fdbef90a57
Remove device class timestamp from device condition and trigger ( #48431 )
...
* Remove unit from garmin connect
* Remove unit from hvv departures
* Remove device class timestamp from device condition and trigger
* Remove unit from systemmonitor
* Use device class constant for timestamp in ring
2021-04-01 15:05:10 +02:00
Franck Nijhof
c1d5638739
Remove HomeAssistantType alias from entity components - Part 2 ( #48468 )
2021-03-29 13:24:56 -10:00
Erik Montnemery
e0cd7072d6
Migrate integrations a-c to extend SensorEntity ( #48210 )
2021-03-22 12:37:16 +01:00
HomeAssistant Azure
098c53e8b5
[ci skip] Translation update
2021-03-20 00:04:10 +00:00
Marc Mueller
a3cd1854f6
Update typing 12 ( #48073 )
2021-03-18 14:31:38 +01:00
HomeAssistant Azure
f625e324dd
[ci skip] Translation update
2021-03-18 00:07:07 +00:00
HomeAssistant Azure
4306c8fbb4
[ci skip] Translation update
2021-03-17 00:03:55 +00:00
HomeAssistant Azure
c11b85af2f
[ci skip] Translation update
2021-03-16 00:04:36 +00:00
Alexei Chetroi
79b5ca9415
Add device classes for CO and CO2 measurements ( #47487 )
2021-03-07 00:52:43 +01:00
Paulus Schoutsen
959ed6d077
Update translations
2021-02-03 11:46:49 +01:00
Paulus Schoutsen
352d0870e3
Light significant changes + sensor tweaks ( #45583 )
2021-01-26 22:11:06 +01:00
Paulus Schoutsen
712a5a098d
Add significant change filtering to Google ( #45566 )
2021-01-26 21:45:09 +01:00
Paulus Schoutsen
d082be787f
Add "significant change" base ( #45555 )
2021-01-26 14:13:27 +01:00
Ville Skyttä
da66a4e933
Device automation config error message improvements ( #44656 )
...
Refs #44654 , #44655
2020-12-31 00:02:14 +01:00
HomeAssistant Azure
6b743c3d16
[ci skip] Translation update
2020-12-24 00:03:44 +00:00
HomeAssistant Azure
fc42f59b0b
[ci skip] Translation update
2020-12-02 00:03:14 +00:00
HomeAssistant Azure
ce16ff27ef
[ci skip] Translation update
2020-11-02 00:03:44 +00:00
HomeAssistant Azure
ed232ac733
[ci skip] Translation update
2020-10-24 00:05:17 +00:00
HomeAssistant Azure
6e53aa1155
[ci skip] Translation update
2020-10-23 00:03:04 +00:00
HomeAssistant Azure
b102ad731f
[ci skip] Translation update
2020-10-22 00:09:52 +00:00
HomeAssistant Azure
994ae09f69
[ci skip] Translation update
2020-10-15 00:03:50 +00:00
HomeAssistant Azure
80522f1bdc
[ci skip] Translation update
2020-10-11 00:03:37 +00:00
HomeAssistant Azure
6ae12c3faf
[ci skip] Translation update
2020-10-10 00:05:05 +00:00
HomeAssistant Azure
d73d36d0cd
[ci skip] Translation update
2020-10-08 00:06:03 +00:00
HomeAssistant Azure
8d1d585b40
[ci skip] Translation update
2020-10-05 00:04:23 +00:00
J. Nick Koston
9ccebdb8d5
Refactor group to extend domains that can be grouped ( #40607 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-30 09:13:53 -05:00
HomeAssistant Azure
e9e17122e7
[ci skip] Translation update
2020-09-28 00:03:28 +00:00
HomeAssistant Azure
75659ff787
[ci skip] Translation update
2020-09-23 00:05:01 +00:00
HomeAssistant Azure
587e3f1eb2
[ci skip] Translation update
2020-09-21 00:02:47 +00:00
HomeAssistant Azure
5dcaeebdac
[ci skip] Translation update
2020-09-20 00:05:00 +00:00
HomeAssistant Azure
07d5af1969
[ci skip] Translation update
2020-09-08 00:04:13 +00:00
HomeAssistant Azure
904f5c4346
[ci skip] Translation update
2020-08-30 00:03:17 +00:00
HomeAssistant Azure
989a040b67
[ci skip] Translation update
2020-08-29 00:03:59 +00:00
HomeAssistant Azure
195d4b6897
[ci skip] Translation update
2020-08-27 00:04:55 +00:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code ( #38655 )
2020-08-17 11:54:56 -05:00
fabiocastagnino
02d572aae5
Add device classes for electrical measurement ( #36800 )
...
* added device classes for electrical measurement
(cherry picked from commit 2409fe19ed43bef568a0cca826652867d3a2d71a)
* upadte power factor unit (%)
* update power factor unit (%)
2020-08-08 21:04:18 +02:00
HomeAssistant Azure
b15caf31a9
[ci skip] Translation update
2020-06-15 00:03:32 +00:00
HomeAssistant Azure
140fd5adaf
[ci skip] Translation update
2020-06-09 00:05:22 +00:00
HomeAssistant Azure
492874c4a0
[ci skip] Translation update
2020-06-06 00:03:33 +00:00
HomeAssistant Azure
d488c779fc
[ci skip] Translation update
2020-06-01 00:03:28 +00:00
HomeAssistant Azure
f4a518edcc
[ci skip] Translation update
2020-05-30 00:03:23 +00:00
HomeAssistant Azure
9586e9ebef
[ci skip] Translation update
2020-05-15 00:02:56 +00:00
Paulus Schoutsen
0efeefe3b2
Update translations
2020-05-13 11:27:21 -07:00
HomeAssistant Azure
78f846d532
[ci skip] Translation update
2020-05-03 00:02:26 +00:00
HomeAssistant Azure
7faba60e83
[ci skip] Translation update
2020-04-29 00:03:31 +00:00
Joakim Sørensen
730a257f3c
Rename translations dir for integrations ( #34494 )
2020-04-21 16:11:05 -07:00
Paulus Schoutsen
95357dfc55
Update translations
2020-04-20 16:33:54 -07:00
Paulus Schoutsen
d560e8245a
Import state strings ( #34451 )
2020-04-20 16:25:35 -07:00
Paulus Schoutsen
0d60d40512
Update translations
2020-04-16 13:00:10 -07:00
Paulus Schoutsen
6119e79023
Migrate frontend translations of domains to backend ( #34294 )
2020-04-16 11:52:27 -07:00
HomeAssistant Azure
ad619817c6
[ci skip] Translation update
2020-04-08 00:08:19 +00:00
Franck Nijhof
187b6525b4
Removal of extraneous parenthesis ( #33637 )
2020-04-04 20:08:55 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields ( #33595 )
2020-04-03 12:58:19 -07:00