Skip to content

Commit

Permalink
Fix type of rooms_dict property (#66)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
apt-itude authored Dec 4, 2023
1 parent 8dbe9eb commit 6e178ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiolyric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6e178ce

Please sign in to comment.