code: def async_update(self, event):
          
          self.update_attr(event.get('state', {}))
          super().async_update(event)
docs: New event for light.
  
          Check that state is part of event.
          Signal that light has updated state.