jockesyk / homeassistant-yale-doorman-via-smarthub

A Home Assistant integration to control a Yale Doorman lock via the Yale Smart Hub.
GNU General Public License v3.0
14 stars 5 forks source link

Update config_flow.py #12

Closed mipe79 closed 3 years ago

mipe79 commented 3 years ago

I found out from HA logs that this code was wrong, nothing run in the if/else case. Could this be removed or should it get updated? I tried to remove it and was able to add the integration in HA.

    if reload_entities:
        if self.options.get(CONF_ENABLE_BINARY_SENSOR):
            #coordinator.platforms.append(BINARY_SENSOR)
            #self.hass.async_add_job(self.hass.config_entries.async_forward_entry_setup(self.config_entry, BINARY_SENSOR))
        else:
            #self.hass.config_entries.async_forward_entry_unload(self.config_entry, BINARY_SENSOR)
jockesyk commented 3 years ago

Thanks. I added some missing "pass" requests to skip this part for now.