Clear device on changes

This commit is contained in:
Pascal Vizeli 2018-04-14 00:30:28 +02:00
parent 31caed20fa
commit c4299b51cd

View File

@ -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()