Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom_components/enphase_envoy_custom/envoy_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
ENVOY_MODEL_C = "P"
ENVOY_MODEL_LEGACY = "P0"

LOGIN_URL = "https://entrez.enphaseenergy.com/login_main_page"
LOGIN_URL = "https://entrez.enphaseenergy.com/login"
TOKEN_URL = "https://entrez.enphaseenergy.com/entrez_tokens"

# paths for the enlighten 6 month owner token
Expand Down Expand Up @@ -275,7 +275,7 @@ async def _getEnphaseToken( # pylint: disable=invalid-name
time_left_days = (token_json["expires_at"] - time.time())/(24*3600)
_LOGGER.debug("Commissioned Token valid for %s days", time_left_days)

elif self.commissioned == "True" or self.commissioned == "Commissioned":
elif self.commissioned == True or self.commissioned == "True" or self.commissioned == "Commissioned":
# Login to website and store cookie
resp = await self._async_post(LOGIN_URL, data=payload_login)
payload_token = {
Expand Down