Skip to content

Commit

Permalink
fix: optimize logging with ruff G004 (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 authored Dec 18, 2024
1 parent e4e7b8f commit 17cf4a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
target-version = "py312"

lint.logger-objects = ["aiovodafone.const._LOGGER"]

lint.select = ["ALL"]

lint.ignore = [
Expand Down
4 changes: 2 additions & 2 deletions src/aiovodafone/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ async def get_docis_data(self) -> dict[Any, Any]:
_LOGGER.debug("Get docis data")
response = await self._get_page_result("/api/v1/sta_docsis_status")
response_json = await response.json()
_LOGGER.debug(f"GET reply ({response_json})")
_LOGGER.debug("GET reply (%s)", response_json)

data: dict[str, Any] = {"downstream": {}, "upstream": {}}

Expand Down Expand Up @@ -393,7 +393,7 @@ async def get_voice_data(self) -> dict[Any, Any]:
_LOGGER.debug("Get voice data")
response = await self._get_page_result("/api/v1/sta_voice_status")
response_json = await response.json()
_LOGGER.debug(f"GET reply ({response_json})")
_LOGGER.debug("GET reply (%s)", response_json)

data: dict[str, Any] = {"line1": {}, "line2": {}}

Expand Down

0 comments on commit 17cf4a2

Please # to comment.