Skip to content

Commit e4c3311

Browse files
committed
DNS Debugging
1 parent 79cc472 commit e4c3311

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

custom_components/stromer/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"iot_class": "cloud_polling",
99
"issue_tracker": "https://github.com/CoMPaTech/stromer/issues",
1010
"requirements": [],
11-
"version": "0.4.2"
11+
"version": "0.4.3a1"
1212
}

custom_components/stromer/stromer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,16 @@ async def stromer_get_code(self) -> None:
170170
url, data=data, headers={"Referer": url}, allow_redirects=False
171171
)
172172
next_loc = res.headers.get("Location")
173+
LOGGER.error("DEBUG location result %s", await res.text())
174+
LOGGER.error("DEBUG determined next location: %s", next_loc)
175+
173176
next_url = f"{self.base_url}{next_loc}"
177+
LOGGER.error("DEBUG next url: %s", next_url)
178+
174179
res = await self._websession.get(next_url, allow_redirects=False)
175180
self._code = res.headers.get("Location")
181+
LOGGER.error("DEBUG code result %s", await res.text())
182+
LOGGER.error("DEBUG code determined: %s", self._code)
176183
self._code = self._code.split("=")[1] # type: ignore[union-attr]
177184

178185
async def stromer_get_access_token(self) -> None:

0 commit comments

Comments
 (0)