Add incomfort sensor and binary_sensor (#23812)

* Initial commit - add sensors to incomfort

* improve temp heuristics

* remove self._hass

* device_state_attributes shoudln't be None

* bump client

* refactor to reduce duplication of attributes

* refactor binary_sensor to simplify

* refactor binary_sensor to simplify 2

* delint

* fix rebase regression

* small refactor

* delint

* remove DEVICE_CLASS for CV pressure

* tidy up exception handling

* delint

* fix exception handling

* use differnt icon for boiler temp
This commit is contained in:
David Bonnes
2019-06-19 17:03:18 +01:00
committed by Paulus Schoutsen
parent d63c44f778
commit c1d441b0ac
5 changed files with 190 additions and 16 deletions

View File

@@ -346,6 +346,7 @@ LENGTH_MILES = 'mi' # type: str
# Pressure units
PRESSURE_PA = 'Pa' # type: str
PRESSURE_HPA = 'hPa' # type: str
PRESSURE_BAR = 'bar' # type: str
PRESSURE_MBAR = 'mbar' # type: str
PRESSURE_INHG = 'inHg' # type: str
PRESSURE_PSI = 'psi' # type: str