Rename wsrc to wser
This commit is contained in:
parent
db231af43d
commit
daa9f0d58b
|
@ -7,7 +7,7 @@ from . import exceptions as e
|
|||
from .const import DEFAULT_BCAST_ADDR, DEFAULT_PORT, DEFAULT_TIMEOUT
|
||||
from .alarm import S1C
|
||||
from .climate import hysen
|
||||
from .cover import dooya, dooya2, wsrc
|
||||
from .cover import dooya, dooya2, wser
|
||||
from .device import Device, ping, scan
|
||||
from .hub import s3
|
||||
from .light import lb1, lb2
|
||||
|
@ -183,8 +183,8 @@ SUPPORTED_TYPES = {
|
|||
dooya2: {
|
||||
0x4F6E: ("DT360E-45/20", "Dooya"),
|
||||
},
|
||||
wsrc: {
|
||||
0x4F6C: ("WSRC103", "Wistar"),
|
||||
wser: {
|
||||
0x4F6C: ("WSER", "Wistar"),
|
||||
},
|
||||
bg1: {
|
||||
0x51E3: ("BG800/BG900", "BG Electrical"),
|
||||
|
|
|
@ -114,10 +114,10 @@ class dooya2(Device):
|
|||
self._send(2, [0x00, 0x09, new_percentage])
|
||||
|
||||
|
||||
class wsrc(Device):
|
||||
class wser(Device):
|
||||
"""Controls a Wistar curtain motor"""
|
||||
|
||||
TYPE = "WSRC"
|
||||
TYPE = "WSER"
|
||||
|
||||
def _send(self, operation: int, data: bytes):
|
||||
"""Send a command to the device."""
|
||||
|
|
Loading…
Reference in New Issue