From 6e178ce25ed54a14995bdca5f6580696b3365395 Mon Sep 17 00:00:00 2001 From: Alex Thompson Date: Mon, 4 Dec 2023 04:10:19 -0500 Subject: [PATCH] Fix type of `rooms_dict` property (#66) The `_rooms_dict` member is a nested dictionary keyed by mac ID, then room ID, but the `rooms_dict` property that wraps it claims to return a type of `dict[str, LyricRoom]`. This corrects the type signature. --- aiolyric/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiolyric/__init__.py b/aiolyric/__init__.py index 16ff75b..1425571 100644 --- a/aiolyric/__init__.py +++ b/aiolyric/__init__.py @@ -48,7 +48,7 @@ def locations_dict(self) -> dict: return self._locations_dict @property - def rooms_dict(self) -> dict[str, LyricRoom]: + def rooms_dict(self) -> dict[str, dict[str, LyricRoom]]: return self._rooms_dict async def get_devices(