Only react on `NewWeatherConditionEvent` if `plugin_name` is compatible.

This commit is contained in:
Fabio Manganiello 2023-11-20 19:27:06 +01:00
parent aca71c6bc7
commit ca7c89949b
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export default {
},
onWeatherChange(event) {
if (!this.weather)
if (!(this.weather && event && this.weatherPlugins.includes(event.plugin_name)))
this.weather = {}
this.weather = {...this.weather, ...event}