mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 07:36:29 +00:00
fix bug
This commit is contained in:
parent
093ef17fb7
commit
743a218219
@ -48,7 +48,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
@property
|
@property
|
||||||
def machine(self):
|
def machine(self):
|
||||||
"""Return System Machines."""
|
"""Return System Machines."""
|
||||||
return self._docker.machine
|
return self.instance.machine
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def api_ip(self):
|
def api_ip(self):
|
||||||
|
@ -62,11 +62,8 @@ class AlsaAudio(CoreSysAttributes):
|
|||||||
_LOGGER.warning("Unknown channel type: %s", chan_type)
|
_LOGGER.warning("Unknown channel type: %s", chan_type)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
|
||||||
self._data[key][alsa_id] = database.get(self._machine, {}).get(
|
self._data[key][alsa_id] = database.get(self._machine, {}).get(
|
||||||
alsa_id, f"{dev_data[ATTR_NAME]}: {chan_id}")
|
alsa_id, f"{dev_data[ATTR_NAME]}: {chan_id}")
|
||||||
except:
|
|
||||||
_LOGGER.exception("hmm")
|
|
||||||
|
|
||||||
self._cache = current_id
|
self._cache = current_id
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user