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)
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.