forked from platypush/platypush
Only react on NewWeatherConditionEvent
if plugin_name
is compatible.
This commit is contained in:
parent
aca71c6bc7
commit
ca7c89949b
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
onWeatherChange(event) {
|
onWeatherChange(event) {
|
||||||
if (!this.weather)
|
if (!(this.weather && event && this.weatherPlugins.includes(event.plugin_name)))
|
||||||
this.weather = {}
|
this.weather = {}
|
||||||
|
|
||||||
this.weather = {...this.weather, ...event}
|
this.weather = {...this.weather, ...event}
|
||||||
|
|
Loading…
Reference in a new issue