Improve upnp typing (#84652)

This commit is contained in:
Marc Mueller 2022-12-29 10:59:06 +01:00 committed by GitHub
parent 6261994fcf
commit bd9f03010f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -1,6 +1,5 @@
"""UPnP/IGD coordinator."""
from collections.abc import Mapping
from datetime import timedelta
from typing import Any
@ -35,7 +34,7 @@ class UpnpDataUpdateCoordinator(DataUpdateCoordinator):
update_interval=update_interval,
)
async def _async_update_data(self) -> Mapping[str, Any]:
async def _async_update_data(self) -> dict[str, Any]:
"""Update data."""
try:
return await self.device.async_get_data()