Skip to content

Commit be644ca

Browse files
authored
Add type to coordinator for Squeezebox (home-assistant#149087)
1 parent d266b6f commit be644ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

homeassistant/components/squeezebox/coordinator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
_LOGGER = logging.getLogger(__name__)
3131

3232

33-
class LMSStatusDataUpdateCoordinator(DataUpdateCoordinator):
33+
class LMSStatusDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
3434
"""LMS Status custom coordinator."""
3535

3636
config_entry: SqueezeboxConfigEntry
@@ -59,13 +59,13 @@ async def _async_setup(self) -> None:
5959
else:
6060
_LOGGER.warning("Can't query server capabilities %s", self.lms.name)
6161

62-
async def _async_update_data(self) -> dict:
62+
async def _async_update_data(self) -> dict[str, Any]:
6363
"""Fetch data from LMS status call.
6464
6565
Then we process only a subset to make then nice for HA
6666
"""
6767
async with timeout(STATUS_API_TIMEOUT):
68-
data: dict | None = await self.lms.async_prepared_status()
68+
data: dict[str, Any] | None = await self.lms.async_prepared_status()
6969

7070
if not data:
7171
raise UpdateFailed(

0 commit comments

Comments
 (0)