mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Improve type hints in zwave_js select entity (#76449)
This commit is contained in:
parent
7cd4be1310
commit
3026a70f96
@ -82,7 +82,7 @@ class ZwaveSelectEntity(ZWaveBaseEntity, SelectEntity):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
async def async_select_option(self, option: str | int) -> None:
|
async def async_select_option(self, option: str) -> None:
|
||||||
"""Change the selected option."""
|
"""Change the selected option."""
|
||||||
key = next(
|
key = next(
|
||||||
key
|
key
|
||||||
@ -133,7 +133,7 @@ class ZwaveDefaultToneSelectEntity(ZWaveBaseEntity, SelectEntity):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
async def async_select_option(self, option: str | int) -> None:
|
async def async_select_option(self, option: str) -> None:
|
||||||
"""Change the selected option."""
|
"""Change the selected option."""
|
||||||
# We know we can assert because this value is part of the discovery schema
|
# We know we can assert because this value is part of the discovery schema
|
||||||
assert self._tones_value
|
assert self._tones_value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user