Marc Mueller
553521a76b
Add mixin classes for required keys in EntityDescription ( #53610 )
2021-07-28 11:50:13 +02:00
Marc Mueller
3908aabc13
Use EntityDescription - climacell ( #53573 )
...
* Use EntityDescription - climacell
* Fix tests
* Fix coverage ignore comment
2021-07-27 23:47:29 +02:00
Raman Gupta
562aa74c77
Switch to dataclass from dictionary for climacell sensor definitions ( #53168 )
...
* Switch to dataclass from dictionary for climacell sensor definitions
* fix post_init
* fix dataclass and add test
* Update homeassistant/components/climacell/sensor.py
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Update homeassistant/components/climacell/const.py
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* simplify logic
* use tuple
* simplify unit of measurement and use class attributes
* Switch from UnitT to str
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-20 00:22:41 -04:00
Erik Montnemery
777fec62a5
Set device class for climacell temperature sensors ( #52965 )
2021-07-13 13:35:55 -04:00
Raman Gupta
23339cff95
Add new climacell sensors ( #52079 )
...
* Add new climacell sensors
* lint
* add new unit constants
2021-06-27 15:03:20 -04:00
Raman Gupta
9f1b1c6c56
Add value map for Climacell V3 pollen sensors ( #50200 )
2021-05-06 21:12:51 -07:00
Ruslan Sayfutdinov
cbaeec2a4e
Use AddEntitiesCallback type, pt.2 ( #49921 )
2021-04-30 20:38:59 +02:00
Marc Mueller
c07646db5d
Update typing syntax ( #49480 )
...
* Update typing syntax
* Replace typing imports with ones from collections where possible
* Changes after review
2021-04-20 17:40:41 +02:00
Franck Nijhof
006bcde435
Remove HomeAssistantType alias - Part 3 ( #49339 )
2021-04-17 12:48:03 +02:00
Raman Gupta
898a1a17be
Add sensors for other ClimaCell data ( #49259 )
...
* Add sensors for other ClimaCell data
* add tests and add rounding
* docstrings
* fix pressure
* Update homeassistant/components/climacell/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/climacell/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* review comments
* add another abstractmethod
* use superscript
* remove mypy ignore
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-15 16:31:59 -04:00