Skip to content

Commit

Permalink
Bump motionblinds to 0.6.20 (#109837)
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG authored and frenck committed Feb 7, 2024
1 parent 27691b7 commit 031aadf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/motion_blinds/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
BlindType.CurtainLeft: CoverDeviceClass.CURTAIN,
BlindType.CurtainRight: CoverDeviceClass.CURTAIN,
BlindType.SkylightBlind: CoverDeviceClass.SHADE,
BlindType.InsectScreen: CoverDeviceClass.SHADE,
}

TILT_DEVICE_MAP = {
Expand All @@ -69,6 +70,7 @@

TDBU_DEVICE_MAP = {
BlindType.TopDownBottomUp: CoverDeviceClass.SHADE,
BlindType.TriangleBlind: CoverDeviceClass.BLIND,
}


Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motion_blinds/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"documentation": "https://www.home-assistant.io/integrations/motion_blinds",
"iot_class": "local_push",
"loggers": ["motionblinds"],
"requirements": ["motionblinds==0.6.19"]
"requirements": ["motionblinds==0.6.20"]
}
5 changes: 3 additions & 2 deletions homeassistant/components/motion_blinds/sensor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""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.config_entries import ConfigEntry
Expand Down Expand Up @@ -29,7 +30,7 @@ async def async_setup_entry(

for blind in motion_gateway.device_list.values():
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, "Top"))
elif blind.battery_voltage is not None and blind.battery_voltage > 0:
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ moehlenhoff-alpha2==1.3.0
mopeka-iot-ble==0.5.0

# homeassistant.components.motion_blinds
motionblinds==0.6.19
motionblinds==0.6.20

# homeassistant.components.motioneye
motioneye-client==0.3.14
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ moehlenhoff-alpha2==1.3.0
mopeka-iot-ble==0.5.0

# homeassistant.components.motion_blinds
motionblinds==0.6.19
motionblinds==0.6.20

# homeassistant.components.motioneye
motioneye-client==0.3.14
Expand Down

0 comments on commit 031aadf

Please sign in to comment.