3188f796f9deed2310ba372b2e8d0ad35dc1e3ef,homeassistant/components/cast/config_flow.py,FlowHandler,async_step_import,#FlowHandler#Any#,27

Before Change


        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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: 3188f796f9deed2310ba372b2e8d0ad35dc1e3ef
Time: 2021-03-25
Author: erik@montnemery.com
File Name: homeassistant/components/cast/config_flow.py
Class Name: FlowHandler
Method Name: async_step_import


Project Name: explosion/thinc
Commit Name: edd70b9132cbc32f866ee3aabbb023166c3dbe32
Time: 2017-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/affine.py
Class Name:
Method Name: _alloc_mem_if_able


Project Name: comic/grand-challenge.org
Commit Name: 34fb7ae750095c01926f7af255da89ebf741cb61
Time: 2020-11-30
Author: HarmvZ@users.noreply.github.com
File Name: app/grandchallenge/algorithms/tasks.py
Class Name:
Method Name: create_algorithm_jobs