diff --git a/aiotfm/room.py b/aiotfm/room.py index d4ec5a0..084386a 100644 --- a/aiotfm/room.py +++ b/aiotfm/room.py @@ -77,10 +77,12 @@ def get_player(self, default: Optional[Any] = None, **kwargs) -> Union[Player, A def filter_(p): return p == value + elif identifier == "id": def filter_(p): return p.id == int(value) + elif identifier == "pid": return self.players.get(int(value), default) else: