Skip to content

Commit

Permalink
error correction on logger
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlizio committed May 3, 2020
1 parent 23aab87 commit 161379e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyvlx/node_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, pyvlx):
async def process_frame(self, frame):
"""Update nodes via frame, usually received by house monitor."""
if isinstance(frame, (FrameGetAllNodesInformationNotification, FrameNodeStatePositionChangedNotification)):
PYVLXLOG.debug("NodeUpdater process frame: %d", frame)
PYVLXLOG.debug("NodeUpdater process frame: %s", frame)
if frame.node_id not in self.pyvlx.nodes:
return
node = self.pyvlx.nodes[frame.node_id]
Expand All @@ -30,10 +30,10 @@ async def process_frame(self, frame):
if isinstance(node, Blind):
if position.position <= Parameter.MAX:
node.position = position
PYVLXLOG.debug("%d position changed to: %d", node.name, position)
PYVLXLOG.debug("%s position changed to: %s", node.name, position)
if orientation.position <= Parameter.MAX:
node.orientation = orientation
PYVLXLOG.debug("%d orientation changed to: %d", node.name, orientation)
PYVLXLOG.debug("%s orientation changed to: %s", node.name, orientation)
await node.after_update()
elif isinstance(node, OpeningDevice):
if position.position <= Parameter.MAX:
Expand Down

0 comments on commit 161379e

Please sign in to comment.