Bump PySwitchbot to 0.18.25 (#77935)
parent
f71313ee1e
commit
e42c48ebca
|
@ -31,6 +31,7 @@ from .coordinator import SwitchbotDataUpdateCoordinator
|
||||||
PLATFORMS_BY_TYPE = {
|
PLATFORMS_BY_TYPE = {
|
||||||
SupportedModels.BULB.value: [Platform.SENSOR, Platform.LIGHT],
|
SupportedModels.BULB.value: [Platform.SENSOR, Platform.LIGHT],
|
||||||
SupportedModels.LIGHT_STRIP.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.BOT.value: [Platform.SWITCH, Platform.SENSOR],
|
||||||
SupportedModels.PLUG.value: [Platform.SWITCH, Platform.SENSOR],
|
SupportedModels.PLUG.value: [Platform.SWITCH, Platform.SENSOR],
|
||||||
SupportedModels.CURTAIN.value: [
|
SupportedModels.CURTAIN.value: [
|
||||||
|
@ -43,6 +44,7 @@ PLATFORMS_BY_TYPE = {
|
||||||
SupportedModels.MOTION.value: [Platform.BINARY_SENSOR, Platform.SENSOR],
|
SupportedModels.MOTION.value: [Platform.BINARY_SENSOR, Platform.SENSOR],
|
||||||
}
|
}
|
||||||
CLASS_BY_DEVICE = {
|
CLASS_BY_DEVICE = {
|
||||||
|
SupportedModels.CEILING_LIGHT.value: switchbot.SwitchbotCeilingLight,
|
||||||
SupportedModels.CURTAIN.value: switchbot.SwitchbotCurtain,
|
SupportedModels.CURTAIN.value: switchbot.SwitchbotCurtain,
|
||||||
SupportedModels.BOT.value: switchbot.Switchbot,
|
SupportedModels.BOT.value: switchbot.Switchbot,
|
||||||
SupportedModels.PLUG.value: switchbot.SwitchbotPlugMini,
|
SupportedModels.PLUG.value: switchbot.SwitchbotPlugMini,
|
||||||
|
|
|
@ -16,6 +16,7 @@ class SupportedModels(StrEnum):
|
||||||
|
|
||||||
BOT = "bot"
|
BOT = "bot"
|
||||||
BULB = "bulb"
|
BULB = "bulb"
|
||||||
|
CEILING_LIGHT = "ceiling_light"
|
||||||
CURTAIN = "curtain"
|
CURTAIN = "curtain"
|
||||||
HYGROMETER = "hygrometer"
|
HYGROMETER = "hygrometer"
|
||||||
LIGHT_STRIP = "light_strip"
|
LIGHT_STRIP = "light_strip"
|
||||||
|
@ -30,6 +31,7 @@ CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
||||||
SwitchbotModel.PLUG_MINI: SupportedModels.PLUG,
|
SwitchbotModel.PLUG_MINI: SupportedModels.PLUG,
|
||||||
SwitchbotModel.COLOR_BULB: SupportedModels.BULB,
|
SwitchbotModel.COLOR_BULB: SupportedModels.BULB,
|
||||||
SwitchbotModel.LIGHT_STRIP: SupportedModels.LIGHT_STRIP,
|
SwitchbotModel.LIGHT_STRIP: SupportedModels.LIGHT_STRIP,
|
||||||
|
SwitchbotModel.CEILING_LIGHT: SupportedModels.CEILING_LIGHT,
|
||||||
}
|
}
|
||||||
|
|
||||||
NON_CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
NON_CONNECTABLE_SUPPORTED_MODEL_TYPES = {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"domain": "switchbot",
|
"domain": "switchbot",
|
||||||
"name": "SwitchBot",
|
"name": "SwitchBot",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/switchbot",
|
"documentation": "https://www.home-assistant.io/integrations/switchbot",
|
||||||
"requirements": ["PySwitchbot==0.18.22"],
|
"requirements": ["PySwitchbot==0.18.25"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["bluetooth"],
|
"dependencies": ["bluetooth"],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
|
|
@ -37,7 +37,7 @@ PyRMVtransport==0.3.3
|
||||||
PySocks==1.7.1
|
PySocks==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.switchbot
|
# homeassistant.components.switchbot
|
||||||
PySwitchbot==0.18.22
|
PySwitchbot==0.18.25
|
||||||
|
|
||||||
# homeassistant.components.transport_nsw
|
# homeassistant.components.transport_nsw
|
||||||
PyTransportNSW==0.1.1
|
PyTransportNSW==0.1.1
|
||||||
|
|
|
@ -33,7 +33,7 @@ PyRMVtransport==0.3.3
|
||||||
PySocks==1.7.1
|
PySocks==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.switchbot
|
# homeassistant.components.switchbot
|
||||||
PySwitchbot==0.18.22
|
PySwitchbot==0.18.25
|
||||||
|
|
||||||
# homeassistant.components.transport_nsw
|
# homeassistant.components.transport_nsw
|
||||||
PyTransportNSW==0.1.1
|
PyTransportNSW==0.1.1
|
||||||
|
|
Loading…
Reference in New Issue