Skip to content

Commit

Permalink
Add updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Aug 9, 2024
1 parent 314f4da commit 5db8f8d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"features": {
"ghcr.io/devcontainers-contrib/features/ffmpeg-apt-get:1": {} // required for Home Assistant
},
"postCreateCommand": "pip install -r requirements_dev.txt && pre-commit install && pre-commit install-hooks",
"postCreateCommand": "pip install -r requirements_dev.txt && pre-commit install && pre-commit install-hooks && sudo apt-get install libpcap-dev libturbojpeg0",
"containerEnv": {
"DEVCONTAINER": "1"
},
Expand Down
4 changes: 3 additions & 1 deletion custom_components/sagemcom_fast/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(
self.data = {}
self.hosts: dict[str, Device] = {}
self.client = client
self.logger = logger

async def _async_update_data(self) -> dict[str, Device]:
"""Update hosts data."""
Expand All @@ -53,4 +54,5 @@ async def _async_update_data(self) -> dict[str, Device]:

return self.hosts
except Exception as exception:
raise UpdateFailed(f"Error communicating with API: {exception}")
self.logger.exception(exception)
raise UpdateFailed(f"Error communicating with API: {str(exception)}")
2 changes: 1 addition & 1 deletion custom_components/sagemcom_fast/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/imicknl/ha-sagemcom-fast/issues",
"requirements": [
"sagemcom_api==1.2.1"
"sagemcom_api==1.2.2"
],
"ssdp": [
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sagemcom_api==1.2.1
sagemcom_api==1.2.2

0 comments on commit 5db8f8d

Please sign in to comment.