Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bad Coding in Modem Sync_Add and Sync #194

Merged
merged 1 commit into from
Feb 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions insteon_mqtt/Modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def sync(self, dry_run=True, refresh=True, sequence=None, on_done=None):
for entry in diff.add_entries:
seq.add(self._sync_add, entry, dry_run)
else:
seq.add(LOG.ui, " No changes necessary.")
LOG.ui(" No changes necessary.")

if sequence is None:
seq.run()
Expand Down Expand Up @@ -694,9 +694,7 @@ def _sync_add(self, entry, dry_run, on_done=None):
on_done(True, None, None)
else:
LOG.ui(" Adding %s:", entry)
self.db.add_on_device(self.protocol, entry.addr, entry.group,
entry.is_controller, entry.data,
on_done=on_done)
self.db.add_on_device(self.protocol, entry, on_done=on_done)

#-----------------------------------------------------------------------
def sync_all(self, dry_run=True, refresh=True, on_done=None):
Expand Down