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)