diff --git a/wirelesstagpy/constants.py b/wirelesstagpy/constants.py index 5f85064..bf990b5 100644 --- a/wirelesstagpy/constants.py +++ b/wirelesstagpy/constants.py @@ -5,7 +5,7 @@ MAJOR_VERSION = 0 MINOR_VERSION = 8 -PATCH_VERSION = 0 +PATCH_VERSION = 1 __version__ = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION) diff --git a/wirelesstagpy/sensortag.py b/wirelesstagpy/sensortag.py index 95c1a81..605e74e 100644 --- a/wirelesstagpy/sensortag.py +++ b/wirelesstagpy/sensortag.py @@ -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: