Keeping adding in Github repositories after error (#32393)

This commit is contained in:
kuchel77 2020-03-02 23:59:11 +11:00 committed by GitHub
parent 7ca4665711
commit eb90cefd84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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