def update(self):
        enabled = self._hikvision_cam.is_motion_detection_enabled()
        _LOGGING.info('enabled: %s', enabled)

        self._state = STATE_ON if enabled else STATE_OFF
Update Motion Detection state.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/hikvisioncam.py/HikvisionMotionSwitch.update