1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-13 22:47:03 +00:00
Files
core/homeassistant/components
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
..
2021-08-07 00:10:12 +00:00
2021-08-07 21:10:21 -07:00
2021-08-10 10:46:33 +02:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-07 00:10:12 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-22 00:10:31 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-07-22 00:10:31 +00:00
2021-08-09 20:56:19 -07:00
2021-08-11 00:18:57 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 18:24:19 +02:00
2021-08-05 00:34:46 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-08 00:11:15 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-08-05 00:34:46 +00:00
2021-08-10 10:45:56 +02:00
2021-08-06 00:15:04 +00:00
2021-08-08 22:48:33 +02:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-08 00:11:15 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-08 00:11:15 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-11 00:18:57 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-19 00:09:50 +00:00
2021-08-07 00:10:12 +00:00
2021-08-08 00:11:15 +00:00
2021-08-11 00:18:57 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-10 16:47:52 +02:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-22 00:10:31 +00:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-07-22 00:10:31 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-07-14 12:07:00 +02:00
2021-08-02 03:40:04 +00:00
2021-08-02 09:18:59 +02:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-07-19 00:09:50 +00:00
2021-08-08 00:11:15 +00:00
2021-08-10 16:28:39 +02:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-07-19 00:09:50 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-19 19:00:37 +02:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-10 20:28:03 -07:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-08 00:11:15 +00:00
2021-08-02 03:40:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-08 00:11:15 +00:00
2021-07-14 21:44:57 -07:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 09:16:47 +02:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-08 00:11:15 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-02 03:40:04 +00:00
2021-08-02 11:14:45 +02:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-07-22 00:10:31 +00:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-07-29 21:03:13 +02:00
2021-08-07 00:10:12 +00:00
2021-08-08 00:11:15 +00:00
2021-08-08 00:11:15 +00:00
2021-08-06 00:15:04 +00:00
2021-08-03 00:10:03 +00:00
2021-07-22 00:10:31 +00:00
2021-07-14 21:44:57 -07:00
2021-08-07 00:10:12 +00:00
2021-07-22 00:10:31 +00:00
2021-08-07 00:10:12 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-11 00:18:57 +00:00
2021-08-08 00:11:15 +00:00
2021-07-19 19:00:37 +02:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-11 00:18:57 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-22 00:10:31 +00:00
2021-07-22 21:56:38 +02:00
2021-08-06 00:15:04 +00:00
2021-08-08 00:11:15 +00:00
2021-08-02 03:40:04 +00:00
2021-08-09 00:11:34 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-07-14 21:44:57 -07:00
2021-08-04 12:34:04 +02:00
2021-08-08 00:11:15 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-07-22 00:10:31 +00:00
2021-08-02 03:40:04 +00:00