docs: def get_bulb_state(self):
          """Get the relay state."""
          self.get_status()
          try:
              self.state = self.data['on']
          except TypeError:
              self.state = False
  
          return bool(self.state)