Skip to content

Commit

Permalink
Fixed broken PIR motion event reporting. build 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymaysak committed Nov 27, 2021
1 parent 0c41dec commit 538587d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wirelesstagpy/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

MAJOR_VERSION = 0
MINOR_VERSION = 8
PATCH_VERSION = 0
PATCH_VERSION = 1

__version__ = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)

Expand Down
2 changes: 1 addition & 1 deletion wirelesstagpy/sensortag.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def is_light_sensor_armed(self) -> bool:
@property
def is_moved(self) -> bool:
"""Return True if detected movement."""
return self.motion_state == CONST.MOTION_STATE_MOVED # Moved
return self.motion_state in (CONST.MOTION_STATE_MOVED, CONST.MOTION_STATE_MOVEMENT_DETECTED)

@property
def is_door_open(self) -> bool:
Expand Down

0 comments on commit 538587d

Please sign in to comment.