Bump aioswitcher to 5.1.0 (#132753)

* Bump aioswitcher to 5.0.0

* fix tests
This commit is contained in:
YogevBokobza 2024-12-10 10:43:09 +02:00 committed by GitHub
parent bcedb004be
commit 790edea4a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/switcher_kis", "documentation": "https://www.home-assistant.io/integrations/switcher_kis",
"iot_class": "local_push", "iot_class": "local_push",
"loggers": ["aioswitcher"], "loggers": ["aioswitcher"],
"requirements": ["aioswitcher==5.0.0"], "requirements": ["aioswitcher==5.1.0"],
"single_config_entry": true "single_config_entry": true
} }

View File

@ -384,7 +384,7 @@ aiosteamist==1.0.0
aiostreammagic==2.10.0 aiostreammagic==2.10.0
# homeassistant.components.switcher_kis # homeassistant.components.switcher_kis
aioswitcher==5.0.0 aioswitcher==5.1.0
# homeassistant.components.syncthing # homeassistant.components.syncthing
aiosyncthing==0.5.1 aiosyncthing==0.5.1

View File

@ -366,7 +366,7 @@ aiosteamist==1.0.0
aiostreammagic==2.10.0 aiostreammagic==2.10.0
# homeassistant.components.switcher_kis # homeassistant.components.switcher_kis
aioswitcher==5.0.0 aioswitcher==5.1.0
# homeassistant.components.syncthing # homeassistant.components.syncthing
aiosyncthing==0.5.1 aiosyncthing==0.5.1

View File

@ -3,6 +3,7 @@
from aioswitcher.device import ( from aioswitcher.device import (
DeviceState, DeviceState,
DeviceType, DeviceType,
ShutterChildLock,
ShutterDirection, ShutterDirection,
SwitcherDualShutterSingleLight, SwitcherDualShutterSingleLight,
SwitcherLight, SwitcherLight,
@ -90,6 +91,8 @@ DUMMY_POSITION = [54]
DUMMY_POSITION_2 = [54, 54] DUMMY_POSITION_2 = [54, 54]
DUMMY_DIRECTION = [ShutterDirection.SHUTTER_STOP] DUMMY_DIRECTION = [ShutterDirection.SHUTTER_STOP]
DUMMY_DIRECTION_2 = [ShutterDirection.SHUTTER_STOP, ShutterDirection.SHUTTER_STOP] DUMMY_DIRECTION_2 = [ShutterDirection.SHUTTER_STOP, ShutterDirection.SHUTTER_STOP]
DUMMY_CHILD_LOCK = [ShutterChildLock.OFF]
DUMMY_CHILD_LOCK_2 = [ShutterChildLock.OFF, ShutterChildLock.OFF]
DUMMY_USERNAME = "email" DUMMY_USERNAME = "email"
DUMMY_TOKEN = "zvVvd7JxtN7CgvkD1Psujw==" DUMMY_TOKEN = "zvVvd7JxtN7CgvkD1Psujw=="
DUMMY_LIGHT = [DeviceState.ON] DUMMY_LIGHT = [DeviceState.ON]
@ -135,6 +138,7 @@ DUMMY_SHUTTER_DEVICE = SwitcherShutter(
DUMMY_TOKEN_NEEDED4, DUMMY_TOKEN_NEEDED4,
DUMMY_POSITION, DUMMY_POSITION,
DUMMY_DIRECTION, DUMMY_DIRECTION,
DUMMY_CHILD_LOCK,
) )
DUMMY_SINGLE_SHUTTER_DUAL_LIGHT_DEVICE = SwitcherSingleShutterDualLight( DUMMY_SINGLE_SHUTTER_DUAL_LIGHT_DEVICE = SwitcherSingleShutterDualLight(
@ -148,6 +152,7 @@ DUMMY_SINGLE_SHUTTER_DUAL_LIGHT_DEVICE = SwitcherSingleShutterDualLight(
DUMMY_TOKEN_NEEDED5, DUMMY_TOKEN_NEEDED5,
DUMMY_POSITION, DUMMY_POSITION,
DUMMY_DIRECTION, DUMMY_DIRECTION,
DUMMY_CHILD_LOCK,
DUMMY_LIGHT_2, DUMMY_LIGHT_2,
) )
@ -162,6 +167,7 @@ DUMMY_DUAL_SHUTTER_SINGLE_LIGHT_DEVICE = SwitcherDualShutterSingleLight(
DUMMY_TOKEN_NEEDED6, DUMMY_TOKEN_NEEDED6,
DUMMY_POSITION_2, DUMMY_POSITION_2,
DUMMY_DIRECTION_2, DUMMY_DIRECTION_2,
DUMMY_CHILD_LOCK_2,
DUMMY_LIGHT, DUMMY_LIGHT,
) )