Bump motionblinds to 0.6.20 (#109837)
parent
27691b7d48
commit
031aadff00
|
@ -51,6 +51,7 @@ POSITION_DEVICE_MAP = {
|
||||||
BlindType.CurtainLeft: CoverDeviceClass.CURTAIN,
|
BlindType.CurtainLeft: CoverDeviceClass.CURTAIN,
|
||||||
BlindType.CurtainRight: CoverDeviceClass.CURTAIN,
|
BlindType.CurtainRight: CoverDeviceClass.CURTAIN,
|
||||||
BlindType.SkylightBlind: CoverDeviceClass.SHADE,
|
BlindType.SkylightBlind: CoverDeviceClass.SHADE,
|
||||||
|
BlindType.InsectScreen: CoverDeviceClass.SHADE,
|
||||||
}
|
}
|
||||||
|
|
||||||
TILT_DEVICE_MAP = {
|
TILT_DEVICE_MAP = {
|
||||||
|
@ -69,6 +70,7 @@ TILT_ONLY_DEVICE_MAP = {
|
||||||
|
|
||||||
TDBU_DEVICE_MAP = {
|
TDBU_DEVICE_MAP = {
|
||||||
BlindType.TopDownBottomUp: CoverDeviceClass.SHADE,
|
BlindType.TopDownBottomUp: CoverDeviceClass.SHADE,
|
||||||
|
BlindType.TriangleBlind: CoverDeviceClass.BLIND,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,5 +21,5 @@
|
||||||
"documentation": "https://www.home-assistant.io/integrations/motion_blinds",
|
"documentation": "https://www.home-assistant.io/integrations/motion_blinds",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["motionblinds"],
|
"loggers": ["motionblinds"],
|
||||||
"requirements": ["motionblinds==0.6.19"]
|
"requirements": ["motionblinds==0.6.20"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Support for Motion Blinds sensors."""
|
"""Support for Motion Blinds sensors."""
|
||||||
from motionblinds import DEVICE_TYPES_WIFI, BlindType
|
from motionblinds import DEVICE_TYPES_WIFI
|
||||||
|
from motionblinds.motion_blinds import DEVICE_TYPE_TDBU
|
||||||
|
|
||||||
from homeassistant.components.sensor import SensorDeviceClass, SensorEntity
|
from homeassistant.components.sensor import SensorDeviceClass, SensorEntity
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -29,7 +30,7 @@ async def async_setup_entry(
|
||||||
|
|
||||||
for blind in motion_gateway.device_list.values():
|
for blind in motion_gateway.device_list.values():
|
||||||
entities.append(MotionSignalStrengthSensor(coordinator, blind))
|
entities.append(MotionSignalStrengthSensor(coordinator, blind))
|
||||||
if blind.type == BlindType.TopDownBottomUp:
|
if blind.device_type == DEVICE_TYPE_TDBU:
|
||||||
entities.append(MotionTDBUBatterySensor(coordinator, blind, "Bottom"))
|
entities.append(MotionTDBUBatterySensor(coordinator, blind, "Bottom"))
|
||||||
entities.append(MotionTDBUBatterySensor(coordinator, blind, "Top"))
|
entities.append(MotionTDBUBatterySensor(coordinator, blind, "Top"))
|
||||||
elif blind.battery_voltage is not None and blind.battery_voltage > 0:
|
elif blind.battery_voltage is not None and blind.battery_voltage > 0:
|
||||||
|
|
|
@ -1310,7 +1310,7 @@ moehlenhoff-alpha2==1.3.0
|
||||||
mopeka-iot-ble==0.5.0
|
mopeka-iot-ble==0.5.0
|
||||||
|
|
||||||
# homeassistant.components.motion_blinds
|
# homeassistant.components.motion_blinds
|
||||||
motionblinds==0.6.19
|
motionblinds==0.6.20
|
||||||
|
|
||||||
# homeassistant.components.motioneye
|
# homeassistant.components.motioneye
|
||||||
motioneye-client==0.3.14
|
motioneye-client==0.3.14
|
||||||
|
|
|
@ -1046,7 +1046,7 @@ moehlenhoff-alpha2==1.3.0
|
||||||
mopeka-iot-ble==0.5.0
|
mopeka-iot-ble==0.5.0
|
||||||
|
|
||||||
# homeassistant.components.motion_blinds
|
# homeassistant.components.motion_blinds
|
||||||
motionblinds==0.6.19
|
motionblinds==0.6.20
|
||||||
|
|
||||||
# homeassistant.components.motioneye
|
# homeassistant.components.motioneye
|
||||||
motioneye-client==0.3.14
|
motioneye-client==0.3.14
|
||||||
|
|
Loading…
Reference in New Issue