Improve type hints in zwave_js select entity (#76449)

pull/76460/head
epenet 2022-08-08 14:55:23 +02:00 committed by GitHub
parent 7cd4be1310
commit 3026a70f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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."""
key = next(
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."""
# We know we can assert because this value is part of the discovery schema
assert self._tones_value