Show XYZRoom typeclass in repr() return

This commit is contained in:
Griatch 2024-04-05 22:39:42 +02:00
parent 6dee18b989
commit 9cec254196
2 changed files with 4 additions and 1 deletions

View file

@ -282,7 +282,7 @@ class XYZRoom(DefaultRoom):
def __repr__(self):
x, y, z = self.xyz
return f"<XYZRoom '{self.db_key}', XYZ=({x},{y},{z})>"
return f"<{self.__class__.__name__} '{self.db_key}', XYZ=({x},{y},{z})>"
@property
def xyz(self):