Commit Graph

14 Commits (cb37df6a619afc167ae758796b8cd980d8e0ee39)

Author SHA1 Message Date
Franck Nijhof 22eba6ce1b
Remove attribution from extra state attributes (#76172) 2022-08-04 08:13:20 +02:00
Marc Mueller 1072aff017
Update coordinator typing (1) [a-c] (#68442) 2022-03-21 15:49:39 +01:00
epenet 4363852178
Add sensor setup type hints [a-b] (#63319)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:18:00 +01:00
epenet 25224f6945
Use new SensorStateClass enum in airnow (#61259)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:20 -08:00
J.P. Krauss 2d29ef9b63
Avoid errors when AirNow API does not return all expected pollutants (#60232)
Co-authored-by: Aaron Bach <bachya1208@gmail.com>
2021-11-23 21:54:53 +01:00
Aaron Bach 0364922d80
Add long-term statistics for AirNow sensors (#56230) 2021-09-14 22:04:55 +02:00
Marc Mueller f5cd321185
Use EntityDescription - airnow (#55684) 2021-09-03 22:36:24 +02: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
Robert Hillis 8ccb338a9b
Use entity class attributes for airnow (#52502) 2021-07-04 11:33:52 -05:00
Erik Montnemery 9e9ba53f0e
Move SensorEntity last in the inheritance tree (#48230) 2021-03-22 20:05:13 +01:00
Erik Montnemery e0cd7072d6
Migrate integrations a-c to extend SensorEntity (#48210) 2021-03-22 12:37:16 +01:00
Erik Montnemery 6c084ae6ce
Update integrations a-e to override extra_state_attributes() (#47756) 2021-03-11 16:51:03 +01:00
tkdrob 4fdb617e22
Clean up constants (#46924)
* Clean up constants

* fix imports
2021-02-23 09:56:44 +01:00
J.P. Krauss e37bb51320
Add AirNow Integration (#40091) 2020-12-30 20:25:57 +01:00