core/tests/components/climacell
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
..
__init__.py
conftest.py Add ClimaCell v4 API support (#47575) 2021-04-05 13:39:39 -04:00
const.py Add ClimaCell v4 API support (#47575) 2021-04-05 13:39:39 -04:00
test_config_flow.py Change HomeAssistantType to HomeAssistant (#49522) 2021-04-21 15:53:06 -10:00
test_const.py Switch to dataclass from dictionary for climacell sensor definitions (#53168) 2021-07-20 00:22:41 -04:00
test_init.py Change HomeAssistantType to HomeAssistant (#49522) 2021-04-21 15:53:06 -10:00
test_sensor.py Remove scale calculation for climacell cloud cover (#52752) 2021-07-08 12:10:05 -04:00
test_weather.py Remove scale calculation for climacell cloud cover (#52752) 2021-07-08 12:10:05 -04:00