mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Enable retrieving sensor data from WoHub2 device and update pySwitchbot to 0.47.2 (#118567)
This commit is contained in:
parent
5fafbebf87
commit
7947f63860
@ -55,6 +55,7 @@ PLATFORMS_BY_TYPE = {
|
|||||||
Platform.BINARY_SENSOR,
|
Platform.BINARY_SENSOR,
|
||||||
Platform.SENSOR,
|
Platform.SENSOR,
|
||||||
],
|
],
|
||||||
|
SupportedModels.HUB2.value: [Platform.SENSOR],
|
||||||
}
|
}
|
||||||
CLASS_BY_DEVICE = {
|
CLASS_BY_DEVICE = {
|
||||||
SupportedModels.CEILING_LIGHT.value: switchbot.SwitchbotCeilingLight,
|
SupportedModels.CEILING_LIGHT.value: switchbot.SwitchbotCeilingLight,
|
||||||
|
@ -27,6 +27,7 @@ class SupportedModels(StrEnum):
|
|||||||
HUMIDIFIER = "humidifier"
|
HUMIDIFIER = "humidifier"
|
||||||
LOCK = "lock"
|
LOCK = "lock"
|
||||||
BLIND_TILT = "blind_tilt"
|
BLIND_TILT = "blind_tilt"
|
||||||
|
HUB2 = "hub2"
|
||||||
|
|
||||||
|
|
||||||
CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
||||||
@ -39,6 +40,7 @@ CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
|||||||
SwitchbotModel.HUMIDIFIER: SupportedModels.HUMIDIFIER,
|
SwitchbotModel.HUMIDIFIER: SupportedModels.HUMIDIFIER,
|
||||||
SwitchbotModel.LOCK: SupportedModels.LOCK,
|
SwitchbotModel.LOCK: SupportedModels.LOCK,
|
||||||
SwitchbotModel.BLIND_TILT: SupportedModels.BLIND_TILT,
|
SwitchbotModel.BLIND_TILT: SupportedModels.BLIND_TILT,
|
||||||
|
SwitchbotModel.HUB2: SupportedModels.HUB2,
|
||||||
}
|
}
|
||||||
|
|
||||||
NON_CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
NON_CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
||||||
|
@ -39,5 +39,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/switchbot",
|
"documentation": "https://www.home-assistant.io/integrations/switchbot",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["switchbot"],
|
"loggers": ["switchbot"],
|
||||||
"requirements": ["PySwitchbot==0.46.1"]
|
"requirements": ["PySwitchbot==0.47.2"]
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ PyQRCode==1.2.1
|
|||||||
PyRMVtransport==0.3.3
|
PyRMVtransport==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.switchbot
|
# homeassistant.components.switchbot
|
||||||
PySwitchbot==0.46.1
|
PySwitchbot==0.47.2
|
||||||
|
|
||||||
# homeassistant.components.switchmate
|
# homeassistant.components.switchmate
|
||||||
PySwitchmate==0.5.1
|
PySwitchmate==0.5.1
|
||||||
|
@ -75,7 +75,7 @@ PyQRCode==1.2.1
|
|||||||
PyRMVtransport==0.3.3
|
PyRMVtransport==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.switchbot
|
# homeassistant.components.switchbot
|
||||||
PySwitchbot==0.46.1
|
PySwitchbot==0.47.2
|
||||||
|
|
||||||
# homeassistant.components.syncthru
|
# homeassistant.components.syncthru
|
||||||
PySyncThru==0.7.10
|
PySyncThru==0.7.10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user