Skip to content

Commit

Permalink
1.4.2
Browse files Browse the repository at this point in the history
1.4.1 Fix for invalid data in current weather device (free API)
1.4.2 Fix for invalid data in OneCall/AirQuality devices
  • Loading branch information
RonnyWinkler committed Aug 16, 2023
1 parent f90f68d commit 6c9f075
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 735 deletions.
8 changes: 8 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,13 @@
"1.4.0": {
"en": "Code cleanup.",
"de": "Code-Bereinigung."
},
"1.4.1": {
"en": "Fix for invalid data in current weather device (free API)",
"de": "Korrektur für ungültige Daten in Aktuelles Wetter Gerät (freie API)."
},
"1.4.2": {
"en": "Fix for invalid data in OneCall/AirQuality devices",
"de": "Korrektur für ungültige Daten in Onecall/AirQuality Geräten."
}
}
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.4.0",
"version": "1.4.2",
"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.4.0",
"version": "1.4.2",
"compatibility": ">=8.1.1",
"sdk": 3,
"name": {
Expand Down
4 changes: 2 additions & 2 deletions drivers/owmAirPollutionCurrent/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class owmAirPollutionCurrent extends Homey.Device {
catch(error){
this.log("Error reading OWM data:", error.message);
}
if (!data.list){
if (data.message && data.cod>200){
if (!data || !data.list){
if (data && data.message && data.cod>200){
this.log("API error message!");
this.log(data);
this.setDeviceUnavailable(data.message);
Expand Down
Loading

0 comments on commit 6c9f075

Please sign in to comment.