mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +00:00
fix bug
This commit is contained in:
parent
093ef17fb7
commit
743a218219
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user