hass-core/homeassistant
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
..
auth Reject trusted network access from proxies (#52388) 2021-07-02 11:49:42 +02:00
components Switch to dataclass from dictionary for climacell sensor definitions (#53168) 2021-07-20 00:22:41 -04:00
generated Add honeywell config flow (#50731) 2021-07-19 09:44:02 -10:00
helpers Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
scripts Update typing syntax (#49480) 2021-04-20 17:40:41 +02:00
util Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
__init__.py
__main__.py Update pylint to 2.8.0 (#49637) 2021-04-24 14:39:24 -10:00
block_async_io.py
bootstrap.py Avoid sending empty integration list multiple times during subscribe_bootstrap_integrations (#49181) 2021-04-15 23:16:17 -07:00
config.py Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
config_entries.py Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
const.py Add sound pressure unit constants (dB + dBa) (#53159) 2021-07-19 06:54:38 -07:00
core.py Pylint 2.9.3 (#52972) 2021-07-14 21:44:57 -07:00
data_entry_flow.py Add missing return type in Core constructors (#50884) 2021-05-20 18:53:29 +03:00
exceptions.py Update typing syntax (#49480) 2021-04-20 17:40:41 +02:00
loader.py Pylint 2.9.3 (#52972) 2021-07-14 21:44:57 -07:00
package_constraints.txt Bump zeroconf to 0.33.1 (#53179) 2021-07-19 12:10:32 +02:00
requirements.py Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
runner.py Fix deadlock at shutdown with python 3.9 (#52613) 2021-07-07 09:23:24 +02:00
setup.py Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
strings.json Add missing oauth2 error abort reason (#48112) 2021-03-19 14:27:26 +01:00