Skip to content

Commit

Permalink
removed 'local' reading of manifest.json
Browse files Browse the repository at this point in the history
+fix-it
  • Loading branch information
marq24 authored and marq24 committed Jun 6, 2024
1 parent d85bf55 commit c974a3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Support for all go-eCharger Wallboxes supporting the APIv2 - __of course__ the APIv2 have to be enabled via the go-eCharger mobile app, __before__ you can use this integration [[see instructions](#enable-http-api-v2-in-go-echarger-app)].

[![hacs_badge][hacsbadge]][hacs] [![BuyMeCoffee][buymecoffeebadge]][buymecoffee] [![PayPal][paypalbadge]][paypal] [![hainstall][hainstallbadge]][hainstall]
[![hacs_badge][hacsbadge]][hacs] [![github][ghsbadge]][ghs] [![BuyMeCoffee][buymecoffeebadge]][buymecoffee] [![PayPal][paypalbadge]][paypal] [![hainstall][hainstallbadge]][hainstall]

## Main features

Expand Down Expand Up @@ -276,6 +276,9 @@ Please consider [using my personal Tibber invitation link to join Tibber today](
[hacs]: https://hacs.xyz
[hacsbadge]: https://img.shields.io/badge/HACS-Custom-orange.svg?style=for-the-badge&logo=homeassistantcommunitystore&logoColor=ccc

[ghs]: https://github.com/sponsors/marq24
[ghsbadge]: https://img.shields.io/github/sponsors/marq24?style=for-the-badge&logo=github&logoColor=ccc&link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fmarq24&label=Sponsors

[buymecoffee]: https://www.buymeacoffee.com/marquardt24
[buymecoffeebadge]: https://img.shields.io/badge/buy%20me%20a-coffee-blue.svg?style=for-the-badge&logo=buymeacoffee&logoColor=ccc

Expand Down
8 changes: 0 additions & 8 deletions custom_components/goecharger_api2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
import json
import logging
from datetime import timedelta
from typing import Any, Final
Expand Down Expand Up @@ -45,13 +44,6 @@ async def async_setup(hass: HomeAssistant, config: Config): # pylint: disable=u
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
if DOMAIN not in hass.data:
value = "UNKOWN"
try:
basepath = __file__[:-11]
with open(f"{basepath}manifest.json") as f:
manifest = json.load(f)
value = manifest["version"]
except:
pass
_LOGGER.info(STARTUP_MESSAGE)
hass.data.setdefault(DOMAIN, {"manifest_version": value})

Expand Down
2 changes: 1 addition & 1 deletion custom_components/goecharger_api2/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/marq24/ha-goecharger-api2/issues",
"requirements": [],
"version": "2024.6.0"
"version": "2024.6.1"
}

0 comments on commit c974a3d

Please sign in to comment.