Fix consider-using-tuple warning in tplink_omada tests (#119814)

Fix consider-using-tuple in tplink_omada tests
This commit is contained in:
epenet 2024-06-17 11:13:34 +02:00 committed by GitHub
parent 75fa0b91d8
commit 4e3cc43343
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()