mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-28 12:56:29 +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:
|
if current_id == self._cache:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Clean old stuff
|
||||||
|
self._data[ATTR_INPUT].clear()
|
||||||
|
self._data[ATTR_OUTPUT].clear()
|
||||||
|
|
||||||
# Init database
|
# Init database
|
||||||
_LOGGER.info("Update ALSA device list")
|
_LOGGER.info("Update ALSA device list")
|
||||||
database = self._audio_database()
|
database = self._audio_database()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user