Skip to content

Commit

Permalink
fix path for logging and config file
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-th committed Jun 7, 2024
1 parent d5aaae7 commit 61b45bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/homematicip/cli/helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import click

from homematicip.model.model import Model
from homematicip.model.model_components import FunctionalChannel, Device


Expand Down
2 changes: 1 addition & 1 deletion src/homematicip/configuration/log_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def get_home_path() -> str:
elif os_name == "Linux":
return os.path.expanduser("~/.homematicip-rest-api")
elif os_name == "Darwin":
return "/Library/Application Support/homematicip-rest-api"
return "~/Library/Preferences/homematicip-rest-api"
3 changes: 2 additions & 1 deletion src/homematicip/connection/rest_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ async def async_post(self, url: str, data: json = None, custom_header: dict = No
return RestResult(status=-1, exception=exc)
except httpx.HTTPStatusError as exc:
LOGGER.error(
f"Error response {exc.response.status_code} while requesting {exc.request.url!r}."
f"Error response {exc.response.status_code} while requesting {exc.request.url!r} with data {data if data is not None else "<no-data>"}."
)
LOGGER.error(f"Response: {repr(exc.response)}")
return RestResult(status=-1, exception=exc)

def _build_url(self, base_url: str, path: str) -> str:
Expand Down

0 comments on commit 61b45bf

Please sign in to comment.