Import data.
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
data = {CONF_KNOWN_HOSTS: self._known_hosts}
return self.async_create_entry(title="Google Cast", data=data)
async def async_step_user(self, user_input=None):
Handle a flow initialized by the user.
After Change
for cfg in media_player_config:
if CONF_IGNORE_CEC in cfg:
self._ignore_cec.update(set(cfg[CONF_IGNORE_CEC]))
if CONF_UUID in cfg:
self._wanted_uuid.add(cfg[CONF_UUID])
data = self._get_data()
return self.async_create_entry(title="Google Cast", data=data)
async def async_step_user(self, user_input=None):