Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Blind switch that raises and lowers roller shutters or window blinds.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.WRITENODE.update({"LEVEL": self.ELEMENT})
self.EVENTNODE.update({"PRESS_SHORT": [1, 2],
"PRESS_LONG": [1, 2]})
@property
def ELEMENT(self):
return [3]
class IPKeyBlind(IPBlind, HelperActionPress):
"""
Blind switch that raises and lowers homematic ip roller shutters or window blinds.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.EVENTNODE.update({"PRESS_SHORT": [1, 2],
"PRESS_LONG": [1, 2]})
@property
def ELEMENT(self):
return [4]
class IPKeyBlindMulti(KeyBlind):