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:
1 parent
039559882b
commit
80bc2666ac
8 files changed
+52
-59
No files matched your search
@@ -53,13 +53,11 @@ class HMSwitch(HMDevice, SwitchDevice):
|
||||
|
||||
def turn_on(self, **kwargs):
|
||||
"""Turn the switch on."""
|
||||
if self.available:
|
||||
self._hmdevice.on(self._channel)
|
||||
self._hmdevice.on(self._channel)
|
||||
|
||||
def turn_off(self, **kwargs):
|
||||
"""Turn the switch off."""
|
||||
if self.available:
|
||||
self._hmdevice.off(self._channel)
|
||||
self._hmdevice.off(self._channel)
|
||||
|
||||
def _init_data_struct(self):
|
||||
"""Generate a data dict (self._data) from the Homematic metadata."""
|
||||
|
||||
Reference in new issue
Block a user