Improve upnp
typing (#84652)
This commit is contained in:
parent
6261994fcf
commit
bd9f03010f
3 changed files with 5 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue