```suggestion          master_entity = next(              (                  entity for entity in self.hass.data[DATA_KEY]                  if entity.entity_id == master              )          )  ```