Fix settings changed check after skill handler

Make self._initial_settings have an unique copy of the settings and not
a reference to the original ones.
pull/2652/head
Åke Forslund 2020-08-08 16:48:07 +02:00
parent a5b7f55ae4
commit 6abfca67a6
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ class MycroftSkill:
"""
if self.settings != self._initial_settings:
save_settings(self.settings_write_path, self.settings)
self._initial_settings = self.settings
self._initial_settings = deepcopy(self.settings)
if handler_info:
msg_type = handler_info + '.complete'
self.bus.emit(message.forward(msg_type, skill_data))