Skip to content

Commit

Permalink
Merge pull request #73 from NabuCasa/dev
Browse files Browse the repository at this point in the history
0.16
  • Loading branch information
balloob authored Aug 1, 2019
2 parents b81dd87 + aa3c4ff commit f482961
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions hass_nabucasa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,16 @@ def load_config():

info = await self.run_executor(load_config)

await self.client.async_initialize(self)

if info is None:
await self.client.async_initialize(self)
return

self.id_token = info["id_token"]
self.access_token = info["access_token"]
self.refresh_token = info["refresh_token"]

await self.client.async_initialize(self)

self.run_task(self.iot.connect())

async def stop(self):
Expand Down
6 changes: 4 additions & 2 deletions hass_nabucasa/acme.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,10 @@ def _revoke_certificate(self) -> None:
except errors.ConflictError:
pass
except errors.Error as err:
_LOGGER.error("Can't revoke certificate: %s", err)
raise AcmeClientError() from None
# Ignore errors where certificate did not exist
if "No such certificate" not in str(err):
_LOGGER.error("Can't revoke certificate: %s", err)
raise AcmeClientError() from None

self.path_fullchain.unlink()
self.path_private_key.unlink()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

VERSION = "0.15"
VERSION = "0.16"

setup(
name="hass-nabucasa",
Expand Down

0 comments on commit f482961

Please sign in to comment.