mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Fix consider-using-tuple warning in tplink_omada tests (#119814)
Fix consider-using-tuple in tplink_omada tests
This commit is contained in:
@@ -77,7 +77,7 @@ def mock_omada_site_client() -> Generator[AsyncMock]:
|
|||||||
site_client.get_switch_ports = AsyncMock(return_value=switch1_ports)
|
site_client.get_switch_ports = AsyncMock(return_value=switch1_ports)
|
||||||
|
|
||||||
async def async_empty() -> AsyncIterable:
|
async def async_empty() -> AsyncIterable:
|
||||||
for c in []:
|
for c in ():
|
||||||
yield c
|
yield c
|
||||||
|
|
||||||
site_client.get_known_clients.return_value = async_empty()
|
site_client.get_known_clients.return_value = async_empty()
|
||||||
|
Reference in New Issue
Block a user