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

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}