Implement choice feature type (#880)

Implement the choice feature type allowing to provide a list of choices that can be set.

Co-authored-by: sdb9696
This commit is contained in:
Teemu R
2024-04-30 08:56:09 +02:00
committed by GitHub
parent d3544b4989
commit 300d823895
7 changed files with 98 additions and 18 deletions

View File

@@ -354,9 +354,6 @@ async def test_credentials(discovery_mock, mocker, runner):
mocker.patch("kasa.cli.state", new=_state)
mocker.patch("kasa.IotProtocol.query", return_value=discovery_mock.query_data)
mocker.patch("kasa.SmartProtocol.query", return_value=discovery_mock.query_data)
dr = DiscoveryResult(**discovery_mock.discovery_data["result"])
res = await runner.invoke(
cli,