def update(self):
        self._state = self._data.status[apcupsd.KEY_STATUS]
Get the status report from APCUPSd and set this entity's state.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/apcupsd.py/OnlineStatus.update