code: def _update_expander_status(self, message):
          
  
          if message.type == ExpanderMessage.RELAY:
              self._relay_status[(message.address, message.channel)] = message.value
  
              self.on_relay_changed(message=message)
  
              return self._relay_status[(message.address, message.channel)]
docs: Uses the provided message to update the expander states.
  
          :param message: message to use to update
          :type message: :py:class:`~alarmdecoder.messages.ExpanderMessage`
  
          :returns: boolean indicating the new status