mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-22 07:00:12 +01:00
Update cover.py
This commit is contained in:
parent
4dbabc9674
commit
3cca9b2a9c
@ -59,13 +59,13 @@ class dooya(device):
|
|||||||
current = self.get_percentage()
|
current = self.get_percentage()
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
||||||
class dooya_new(device):
|
class dt36b(device):
|
||||||
"""Controls a Dooya curtain motor."""
|
"""Controls a Dooya DT360E (type B)."""
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs) -> None:
|
def __init__(self, *args, **kwargs) -> None:
|
||||||
"""Initialize the controller."""
|
"""Initialize the controller."""
|
||||||
device.__init__(self, *args, **kwargs)
|
device.__init__(self, *args, **kwargs)
|
||||||
self.type = "Dooya DT360E(4F6E)"
|
self.type = "DT36B"
|
||||||
|
|
||||||
def _send(self, command: int, attribute: int = 0) -> int:
|
def _send(self, command: int, attribute: int = 0) -> int:
|
||||||
"""Send a packet to the device."""
|
"""Send a packet to the device."""
|
||||||
|
Loading…
Reference in New Issue
Block a user