async def async_step_confirm(self, user_input=None):
Confirm the setup.
data = {CONF_KNOWN_HOSTS: self._known_hosts}
if user_input is not None:
return self.async_create_entry(title="Google Cast", data=data)
After Change
async def async_step_confirm(self, user_input=None):
Confirm the setup.
data = self._get_data()
if user_input is not None:
return self.async_create_entry(title="Google Cast", data=data)