mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Bump python-MotionMount to 2.0.0 (#118719)
This commit is contained in:
parent
595c9a2e01
commit
8a68529dd1
@ -6,6 +6,6 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/motionmount",
|
"documentation": "https://www.home-assistant.io/integrations/motionmount",
|
||||||
"integration_type": "device",
|
"integration_type": "device",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"requirements": ["python-MotionMount==1.0.0"],
|
"requirements": ["python-MotionMount==2.0.0"],
|
||||||
"zeroconf": ["_tvm._tcp.local."]
|
"zeroconf": ["_tvm._tcp.local."]
|
||||||
}
|
}
|
||||||
|
@ -35,11 +35,10 @@ class MotionMountPresets(MotionMountEntity, SelectEntity):
|
|||||||
super().__init__(mm, config_entry)
|
super().__init__(mm, config_entry)
|
||||||
self._attr_unique_id = f"{self._base_unique_id}-preset"
|
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."""
|
"""Convert presets to select options."""
|
||||||
options = [WALL_PRESET_NAME]
|
options = [f"{preset.index}: {preset.name}" for preset in presets]
|
||||||
for index, name in presets.items():
|
options.insert(0, WALL_PRESET_NAME)
|
||||||
options.append(f"{index}: {name}")
|
|
||||||
|
|
||||||
self._attr_options = options
|
self._attr_options = options
|
||||||
|
|
||||||
|
@ -2209,7 +2209,7 @@ pytfiac==0.4
|
|||||||
pythinkingcleaner==0.0.3
|
pythinkingcleaner==0.0.3
|
||||||
|
|
||||||
# homeassistant.components.motionmount
|
# homeassistant.components.motionmount
|
||||||
python-MotionMount==1.0.0
|
python-MotionMount==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.awair
|
# homeassistant.components.awair
|
||||||
python-awair==0.2.4
|
python-awair==0.2.4
|
||||||
|
@ -1733,7 +1733,7 @@ pytautulli==23.1.1
|
|||||||
pytedee-async==0.2.17
|
pytedee-async==0.2.17
|
||||||
|
|
||||||
# homeassistant.components.motionmount
|
# homeassistant.components.motionmount
|
||||||
python-MotionMount==1.0.0
|
python-MotionMount==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.awair
|
# homeassistant.components.awair
|
||||||
python-awair==0.2.4
|
python-awair==0.2.4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user