Skip to content

Commit

Permalink
Update use of deprecated function.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Jul 26, 2024
1 parent 663e47f commit 09ca18a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atxm/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(

super().__init__()

self.add_observer(_Machine.LogObserver())
self.add_listener(_Machine.LogObserver())

@property
def _busy(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def on_transition(self, source, target):
@pytest.fixture
def state_observer(machine):
_observer = StateObserver()
machine.add_observer(_observer)
machine.add_listener(_observer)

return _observer

Expand Down

0 comments on commit 09ca18a

Please sign in to comment.