def update(self): """Update the PFIO state.""" self._state = rpi_pfio.read_input(self._port)
def update(self): """Update the PFIO state.""" self._state = rpi_pfio.read_input(self._port)
def read_pfio(port): """Read state from PFIO.""" self._state = rpi_pfio.read_input(self._port) self.schedule_update_ha_state()
def read_pfio(port): """Read state from PFIO.""" self._state = rpi_pfio.read_input(self._port) self.schedule_update_ha_state()