def dev_state(self):
     """Update attributes and return the state."""
     if not self.push_events:
         self.update_all()
     return Device.dev_state(self)