mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-27 12:26:30 +00:00
Clear device on changes
This commit is contained in:
parent
31caed20fa
commit
c4299b51cd
@ -48,6 +48,10 @@ class AlsaAudio(CoreSysAttributes):
|
||||
if current_id == self._cache:
|
||||
return
|
||||
|
||||
# Clean old stuff
|
||||
self._data[ATTR_INPUT].clear()
|
||||
self._data[ATTR_OUTPUT].clear()
|
||||
|
||||
# Init database
|
||||
_LOGGER.info("Update ALSA device list")
|
||||
database = self._audio_database()
|
||||
|
Loading…
x
Reference in New Issue
Block a user