This commit is contained in:
Pascal Vizeli 2018-04-13 23:45:03 +02:00
parent 093ef17fb7
commit 743a218219
2 changed files with 3 additions and 6 deletions

View File

@ -48,7 +48,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
@property
def machine(self):
"""Return System Machines."""
return self._docker.machine
return self.instance.machine
@property
def api_ip(self):

View File

@ -62,11 +62,8 @@ class AlsaAudio(CoreSysAttributes):
_LOGGER.warning("Unknown channel type: %s", chan_type)
continue
try:
self._data[key][alsa_id] = database.get(self._machine, {}).get(
alsa_id, f"{dev_data[ATTR_NAME]}: {chan_id}")
except:
_LOGGER.exception("hmm")
self._data[key][alsa_id] = database.get(self._machine, {}).get(
alsa_id, f"{dev_data[ATTR_NAME]}: {chan_id}")
self._cache = current_id