Commit Graph

14 Commits (421167c548bad838b40e33ca78f473f6e675298c)

Author SHA1 Message Date
Michael b68a2747f3
Use relative imports [A-H] () 2021-12-13 20:03:01 +01:00
Marc Mueller de78c4f0f8
Import Callable from collections.abc () 2021-11-25 22:23:48 +01:00
Aidan Timson c03fdd5da6
Add Azure DevOps coordinator and entity description ()
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2021-11-10 11:49:04 +01:00
Erik Montnemery 4e07ab1b32
Move temperature conversions to sensor base class (1/8) ()
* 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
jan iversen 51dd95ce35
Review comments on earlier merge. () 2021-07-20 13:00:07 +02:00
jan iversen 0b60b86917
Correct typing in azure_devops and activate mypy ()
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-19 17:45:03 +02:00
Robert Hillis 9b577e830d
Use entity class attributes for azure_devops () 2021-07-11 16:42:52 -04:00
Shay Levy cf228e3fe5
Add constructor return type in integrations A-D () 2021-05-20 18:51:39 +03:00
Franck Nijhof 006bcde435
Remove HomeAssistantType alias - Part 3 () 2021-04-17 12:48:03 +02:00
Erik Montnemery 9e9ba53f0e
Move SensorEntity last in the inheritance tree () 2021-03-22 20:05:13 +01:00
Erik Montnemery e0cd7072d6
Migrate integrations a-c to extend SensorEntity () 2021-03-22 12:37:16 +01:00
Marc Mueller 76199c0eb2
Update typing 04 () 2021-03-17 23:34:25 +01:00
Erik Montnemery 6c084ae6ce
Update integrations a-e to override extra_state_attributes() () 2021-03-11 16:51:03 +01:00
Aidan Timson dcba45e67d
Add Azure DevOps Integration ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-07-26 00:04:10 +02:00