Bump python-MotionMount to 2.0.0 (#118719)

This commit is contained in:
RJPoelstra 2024-06-03 16:27:42 +02:00 committed by GitHub
parent 595c9a2e01
commit 8a68529dd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View File

@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/motionmount",
"integration_type": "device",
"iot_class": "local_push",
"requirements": ["python-MotionMount==1.0.0"],
"requirements": ["python-MotionMount==2.0.0"],
"zeroconf": ["_tvm._tcp.local."]
}

View File

@ -35,11 +35,10 @@ class MotionMountPresets(MotionMountEntity, SelectEntity):
super().__init__(mm, config_entry)
self._attr_unique_id = f"{self._base_unique_id}-preset"
def _update_options(self, presets: dict[int, str]) -> None:
def _update_options(self, presets: list[motionmount.Preset]) -> None:
"""Convert presets to select options."""
options = [WALL_PRESET_NAME]
for index, name in presets.items():
options.append(f"{index}: {name}")
options = [f"{preset.index}: {preset.name}" for preset in presets]
options.insert(0, WALL_PRESET_NAME)
self._attr_options = options

View File

@ -2209,7 +2209,7 @@ pytfiac==0.4
pythinkingcleaner==0.0.3
# homeassistant.components.motionmount
python-MotionMount==1.0.0
python-MotionMount==2.0.0
# homeassistant.components.awair
python-awair==0.2.4

View File

@ -1733,7 +1733,7 @@ pytautulli==23.1.1
pytedee-async==0.2.17
# homeassistant.components.motionmount
python-MotionMount==1.0.0
python-MotionMount==2.0.0
# homeassistant.components.awair
python-awair==0.2.4