Make homematic climate dynamic for datapoints. (#5993)

* Make homematic climate dynamic for datapoints.

* Code cleanup

* Add more option

* add options

* Pump version 0.1.22

* optimaze
This commit is contained in:
Pascal Vizeli 2017-02-14 23:19:57 +01:00 committed by GitHub
parent 039559882b
commit 80bc2666ac
8 changed files with 52 additions and 59 deletions

View file

@ -56,9 +56,6 @@ class HMBinarySensor(HMDevice, BinarySensorDevice):
@property
def device_class(self):
"""Return the class of this sensor, from DEVICE_CLASSES."""
if not self.available:
return None
# If state is MOTION (RemoteMotion works only)
if self._state == "MOTION":
return "motion"