Enable retrieving sensor data from WoHub2 device and update pySwitchbot to 0.47.2 (#118567)

This commit is contained in:
Huyuwei 2024-06-07 16:56:12 +08:00 committed by GitHub
parent 5fafbebf87
commit 7947f63860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 3 deletions

View File

@ -55,6 +55,7 @@ PLATFORMS_BY_TYPE = {
Platform.BINARY_SENSOR,
Platform.SENSOR,
],
SupportedModels.HUB2.value: [Platform.SENSOR],
}
CLASS_BY_DEVICE = {
SupportedModels.CEILING_LIGHT.value: switchbot.SwitchbotCeilingLight,

View File

@ -27,6 +27,7 @@ class SupportedModels(StrEnum):
HUMIDIFIER = "humidifier"
LOCK = "lock"
BLIND_TILT = "blind_tilt"
HUB2 = "hub2"
CONNECTABLE_SUPPORTED_MODEL_TYPES = {
@ -39,6 +40,7 @@ CONNECTABLE_SUPPORTED_MODEL_TYPES = {
SwitchbotModel.HUMIDIFIER: SupportedModels.HUMIDIFIER,
SwitchbotModel.LOCK: SupportedModels.LOCK,
SwitchbotModel.BLIND_TILT: SupportedModels.BLIND_TILT,
SwitchbotModel.HUB2: SupportedModels.HUB2,
}
NON_CONNECTABLE_SUPPORTED_MODEL_TYPES = {

View File

@ -39,5 +39,5 @@
"documentation": "https://www.home-assistant.io/integrations/switchbot",
"iot_class": "local_push",
"loggers": ["switchbot"],
"requirements": ["PySwitchbot==0.46.1"]
"requirements": ["PySwitchbot==0.47.2"]
}

View File

@ -87,7 +87,7 @@ PyQRCode==1.2.1
PyRMVtransport==0.3.3
# homeassistant.components.switchbot
PySwitchbot==0.46.1
PySwitchbot==0.47.2
# homeassistant.components.switchmate
PySwitchmate==0.5.1

View File

@ -75,7 +75,7 @@ PyQRCode==1.2.1
PyRMVtransport==0.3.3
# homeassistant.components.switchbot
PySwitchbot==0.46.1
PySwitchbot==0.47.2
# homeassistant.components.syncthru
PySyncThru==0.7.10