async def async_added_to_hass(self):
     """Run when about to be added to hass."""
     async_dispatcher_connect(self.hass,
                              SERVICE_SET_FAN_SPEED.format(self.entity_id),
                              self.service_set_fan_speed)
     async_dispatcher_connect(self.hass,
                              SERVICE_SET_ION_STATE.format(self.entity_id),
                              self.service_set_ion_state)
     async_dispatcher_connect(self.hass,
                              SERVICE_SET_MODE.format(self.entity_id),
                              self.service_set_mode)
 async def async_service_set_mode(call):
     entity_id = call.data[ATTR_ENTITY_ID]
     mode_name = call.data[ATTR_MODE]
     async_dispatcher_send(hass, SERVICE_SET_MODE.format(entity_id),
                           mode_name)