#NEWLINE# def update( self ) : #NEWLINE# #INDENT# 'Update Motion Detection state.' #NEWLINE# enabled = self . _hikvision_cam . is_motion_detection_enabled ( ) #NEWLINE# _LOGGING . info ( 'enabled: %s' , enabled ) #NEWLINE# self . _state = ( STATE_ON if enabled else STATE_OFF )