1
0
Fork 0

Rename wsrc to wser

This commit is contained in:
Felipe Martins Diel 2024-04-10 16:03:17 -03:00
parent db231af43d
commit daa9f0d58b
2 changed files with 5 additions and 5 deletions

View File

@ -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"),

View File

@ -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."""