Skip to content

Commit

Permalink
fix: missing error logs when updates failed, and tf field is optional…
Browse files Browse the repository at this point in the history
… from blueair_api for voc devices
  • Loading branch information
dahlb committed Dec 15, 2024
1 parent 139637c commit 13b8b52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Blueair device object."""
import logging
import traceback
from datetime import timedelta

from blueair_api import DeviceAws as BlueAirApiDeviceAws, ModelEnum
Expand Down Expand Up @@ -40,6 +41,7 @@ async def _async_update_data(self):
_LOGGER.info("update called, pm1=%s", self.pm1)
return {}
except Exception as error:
_LOGGER.exception(error)
raise UpdateFailed(error) from error

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def _async_update_data(self):
await self.blueair_api_device.refresh()
return {}
except Exception as error:
_LOGGER.error(error)
_LOGGER.exception(error)
raise UpdateFailed(error) from error

@property
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ha_blueair/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"documentation": "https://github.com/dahlb/ha_blueair",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/dahlb/ha_blueair/issues",
"requirements": ["blueair-api==1.26.0"],
"requirements": ["blueair-api==1.26.1"],
"version": "1.17.4"
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
homeassistant==2024.8.0
ruff==0.8.2
blueair-api==1.24.1
blueair-api==1.26.1

0 comments on commit 13b8b52

Please sign in to comment.