Bump PySwitchbot to 0.18.25 (#77935)

pull/77956/head
J. Nick Koston 2022-09-07 06:12:17 -05:00 committed by GitHub
parent f71313ee1e
commit e42c48ebca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View File

@ -31,6 +31,7 @@ from .coordinator import SwitchbotDataUpdateCoordinator
PLATFORMS_BY_TYPE = {
SupportedModels.BULB.value: [Platform.SENSOR, Platform.LIGHT],
SupportedModels.LIGHT_STRIP.value: [Platform.SENSOR, Platform.LIGHT],
SupportedModels.CEILING_LIGHT.value: [Platform.SENSOR, Platform.LIGHT],
SupportedModels.BOT.value: [Platform.SWITCH, Platform.SENSOR],
SupportedModels.PLUG.value: [Platform.SWITCH, Platform.SENSOR],
SupportedModels.CURTAIN.value: [
@ -43,6 +44,7 @@ PLATFORMS_BY_TYPE = {
SupportedModels.MOTION.value: [Platform.BINARY_SENSOR, Platform.SENSOR],
}
CLASS_BY_DEVICE = {
SupportedModels.CEILING_LIGHT.value: switchbot.SwitchbotCeilingLight,
SupportedModels.CURTAIN.value: switchbot.SwitchbotCurtain,
SupportedModels.BOT.value: switchbot.Switchbot,
SupportedModels.PLUG.value: switchbot.SwitchbotPlugMini,

View File

@ -16,6 +16,7 @@ class SupportedModels(StrEnum):
BOT = "bot"
BULB = "bulb"
CEILING_LIGHT = "ceiling_light"
CURTAIN = "curtain"
HYGROMETER = "hygrometer"
LIGHT_STRIP = "light_strip"
@ -30,6 +31,7 @@ CONNECTABLE_SUPPORTED_MODEL_TYPES = {
SwitchbotModel.PLUG_MINI: SupportedModels.PLUG,
SwitchbotModel.COLOR_BULB: SupportedModels.BULB,
SwitchbotModel.LIGHT_STRIP: SupportedModels.LIGHT_STRIP,
SwitchbotModel.CEILING_LIGHT: SupportedModels.CEILING_LIGHT,
}
NON_CONNECTABLE_SUPPORTED_MODEL_TYPES = {

View File

@ -2,7 +2,7 @@
"domain": "switchbot",
"name": "SwitchBot",
"documentation": "https://www.home-assistant.io/integrations/switchbot",
"requirements": ["PySwitchbot==0.18.22"],
"requirements": ["PySwitchbot==0.18.25"],
"config_flow": true,
"dependencies": ["bluetooth"],
"codeowners": [

View File

@ -37,7 +37,7 @@ PyRMVtransport==0.3.3
PySocks==1.7.1
# homeassistant.components.switchbot
PySwitchbot==0.18.22
PySwitchbot==0.18.25
# homeassistant.components.transport_nsw
PyTransportNSW==0.1.1

View File

@ -33,7 +33,7 @@ PyRMVtransport==0.3.3
PySocks==1.7.1
# homeassistant.components.switchbot
PySwitchbot==0.18.22
PySwitchbot==0.18.25
# homeassistant.components.transport_nsw
PyTransportNSW==0.1.1