Comments, small bugfixes removed legacy elements

This commit is contained in:
Steffen Illium
2023-11-17 12:27:03 +01:00
parent fea327861e
commit 467cc3f793
27 changed files with 569 additions and 64 deletions

View File

@@ -50,7 +50,6 @@ class Door(Entity):
def is_open(self):
return self._state == d.STATE_OPEN
@property
def time_to_close(self):
return self._time_to_close

View File

@@ -18,6 +18,7 @@ class Doors(Collection):
def tick_doors(self, state):
results = list()
for door in self:
assert isinstance(door, Door)
tick_result = door.tick(state)
if tick_result is not None:
results.append(tick_result)
@@ -26,4 +27,5 @@ class Doors(Collection):
def reset(self):
for door in self:
assert isinstance(door, Door)
door.reset()