From eb90cefd84847c278e287641785a47c256dc236f Mon Sep 17 00:00:00 2001 From: kuchel77 <52343790+kuchel77@users.noreply.github.com> Date: Mon, 2 Mar 2020 23:59:11 +1100 Subject: [PATCH] Keeping adding in Github repositories after error (#32393) --- homeassistant/components/github/sensor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/github/sensor.py b/homeassistant/components/github/sensor.py index 72a8189f915..96dfd4de58c 100644 --- a/homeassistant/components/github/sensor.py +++ b/homeassistant/components/github/sensor.py @@ -61,8 +61,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None): "Error setting up GitHub platform. %s", "Check previous errors for details", ) - return - sensors.append(GitHubSensor(data)) + else: + sensors.append(GitHubSensor(data)) add_entities(sensors, True) @@ -170,7 +170,6 @@ class GitHubData: return self.name = repository.get(CONF_NAME, repo.name) - self.available = False self.latest_commit_message = None self.latest_commit_sha = None