Updated for HA 110.0 (CoverEntity and SwitchEntity instead of CoverDevice and SwitchDevice)

This commit is contained in:
rospogrigio
2020-05-21 07:55:35 +02:00
parent 071cdef230
commit db03bd3a8d
3 changed files with 9 additions and 9 deletions

View File

@@ -436,7 +436,7 @@ class OutletDevice(Device):
super(OutletDevice, self).__init__(dev_id, address, local_key, dev_type)
class CoverDevice(Device):
class CoverEntity(Device):
DPS_INDEX_MOVE = '1'
DPS_INDEX_BL = '101'
@@ -455,7 +455,7 @@ class CoverDevice(Device):
else:
print('Using PyCrypto ', Crypto.version_info)
print('Using PyCrypto from ', Crypto.__file__)
super(CoverDevice, self).__init__(dev_id, address, local_key, dev_type)
super(CoverEntity, self).__init__(dev_id, address, local_key, dev_type)
def open_cover(self, switch=1):
"""Turn the device on"""