Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix endpoint regression #151

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
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/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."]
}
Loading