From 70ac3952322469f9ed300302955c0115c9de2425 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 25 Apr 2018 22:47:17 +0200 Subject: [PATCH] fix bugs --- hassio/coresys.py | 4 ++-- hassio/utils/gdbus.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hassio/coresys.py b/hassio/coresys.py index 878f75555..e8ec6ddd9 100644 --- a/hassio/coresys.py +++ b/hassio/coresys.py @@ -248,11 +248,11 @@ class CoreSys: raise RuntimeError("HostManager already set!") self._host = value - async def run_in_executor(self, funct, *args): + def run_in_executor(self, funct, *args): """Wrapper for executor pool.""" return self._loop.run_in_executor(None, funct, *args) - async def create_task(self, coroutine): + def create_task(self, coroutine): """Wrapper for async task.""" return self._loop.create_task(coroutine) diff --git a/hassio/utils/gdbus.py b/hassio/utils/gdbus.py index 69599debf..ad4f1f6fc 100644 --- a/hassio/utils/gdbus.py +++ b/hassio/utils/gdbus.py @@ -77,7 +77,7 @@ class DBus: raw = RE_GVARIANT_TYPE.sub("", raw) raw = RE_GVARIANT_TULPE.sub(r"[\1]", raw) raw = RE_GVARIANT_VARIANT.sub(r"\1", raw) - raw = RE_GVARIANT_STRING.sub(r"\"\1\"", raw) + raw = RE_GVARIANT_STRING.sub(r'"\1"', raw) try: return json.loads(raw)