Skip to content

Commit

Permalink
1.5.5
Browse files Browse the repository at this point in the history
Fix for invalid API data in CurrentWeather device.
  • Loading branch information
RonnyWinkler committed Mar 15, 2024
1 parent 09edd72 commit ef44ecf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,9 @@
"1.5.4": {
"en": "Added weather 'dust' for OneCall current weather.",
"de": "Wetter 'Staub' ergänzt für OneCall Aktuelles Wetter."
},
"1.5.5": {
"en": "Fix for invalid API data in CurrentWeather device.",
"de": "Korrektur für ungültige API-Daten im Aktuelles-Wetter Gerät."
}
}
2 changes: 1 addition & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "nu.baretta.openweathermap",
"version": "1.5.4",
"version": "1.5.5",
"compatibility": ">=8.1.1",
"sdk": 3,
"name": {
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "nu.baretta.openweathermap",
"version": "1.5.4",
"version": "1.5.5",
"compatibility": ">=8.1.1",
"sdk": 3,
"name": {
Expand Down
4 changes: 3 additions & 1 deletion drivers/owmCurrentWeather/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ class owmCurrenWeather extends Homey.Device {
if (dataKeys[i] != undefined){
if (this.getCapabilityValue(capability) != item.value){
this.log(this.getName() + " Data changed: " + capability + ": " + this.getCapabilityValue(capability) + " => " + item.value);
await this.setCapabilityValue(capability, item.value);
if (item.value != undefined){
await this.setCapabilityValue(capability, item.value);
}
// .catch(error => this.log(error.message));
// Store temporary value to trigger flows for changed capabilities
if (item.trigger != undefined){
Expand Down

0 comments on commit ef44ecf

Please sign in to comment.