Skip to content

Commit

Permalink
FIX: start with existing config failed for SlowPwm
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabix-1311 committed Feb 9, 2025
1 parent 38660c6 commit ee20b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions aquaPi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def create_app() -> Flask:
try:
app.extensions['machineroom'] = MachineRoom(app.config['CONFIG'])
except Exception:
log.exception('Oops')
log.fatal("Fatal error in App.__init__. Subsequent errors are a side effect.")
return None

Expand Down
2 changes: 1 addition & 1 deletion aquaPi/machineroom/out_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __getstate__(self) -> dict[str, Any]:

def __setstate__(self, state: dict[str, Any]) -> None:
self.data = state['data']
SlowPwmDevice.__init__(self, state['name'], state['inputs'], state['port'],
SlowPwmDevice.__init__(self, state['name'], state['receives'], state['port'],
inverted=state['inverted'], cycle=state['cycle'],
_cont=True)

Expand Down

0 comments on commit ee20b52

Please sign in to comment.