Skip to content

Commit

Permalink
Merge pull request #151 from vincentwolsink/fix_endpoint_regression
Browse files Browse the repository at this point in the history
Fix endpoint regression
  • Loading branch information
vincentwolsink authored Sep 12, 2024
2 parents 8815ba9 + 8c2c6ff commit 8c5f4a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/enphase_envoy/envoy_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ async def production_l3(self):

async def set_production_power(self, power_on):
if self.endpoint_production_power is not None:
formatted_url = ENDPOINT_URL_PRODUCTION_POWER.format(self.host)
formatted_url = ENVOY_ENDPOINTS["production_power"]["url"].format(self.host)
power_forced_off = 0 if power_on else 1
await self._async_put(
formatted_url, data={"length": 1, "arr": [power_forced_off]}
Expand Down Expand Up @@ -1287,7 +1287,7 @@ async def upload_grid_profile(self, file):

async def set_storage(self, storage_key, storage_value):
if self.endpoint_admin_tariff is not None:
formatted_url = ENDPOINT_URL_ADMIN_TARIFF.format(self.host)
formatted_url = ENVOY_ENDPOINTS["admin_tariff"]["url"].format(self.host)
tariff = self.data.get("tariff")
tariff["storage_settings"][storage_key] = storage_value

Expand Down
2 changes: 1 addition & 1 deletion custom_components/enphase_envoy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/vincentwolsink/home_assistant_enphase_envoy_installer/issues",
"requirements": ["pyjwt", "xmltodict", "httpx", "jsonpath"],
"version": "0.4.4",
"version": "0.4.5",
"zeroconf": ["_enphase-envoy._tcp.local."]
}

0 comments on commit 8c5f4a1

Please sign in to comment.