From b6bd735ef90f236c6034de346b10493fd2743b0b Mon Sep 17 00:00:00 2001 From: unl0ck Date: Mon, 9 Dec 2024 09:36:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20removed=20unused=20method?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion-edge.toml | 2 +- .../GridboxConnector/__main__.py | 12 ------------ GridboxConnectorAddon-edge/cloudSettings.json | 2 +- GridboxConnectorAddon-edge/config.yaml | 2 +- .../rootfs/share/cloudSettings.json | 2 +- 5 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.bumpversion-edge.toml b/.bumpversion-edge.toml index 06a4bb3..ae966f4 100644 --- a/.bumpversion-edge.toml +++ b/.bumpversion-edge.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "2.11.19" +current_version = "2.11.20" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}" diff --git a/GridboxConnectorAddon-edge/GridboxConnector/__main__.py b/GridboxConnectorAddon-edge/GridboxConnector/__main__.py index 3d36ccf..c260110 100644 --- a/GridboxConnectorAddon-edge/GridboxConnector/__main__.py +++ b/GridboxConnectorAddon-edge/GridboxConnector/__main__.py @@ -24,18 +24,6 @@ def load_gridbox_config(): data = json.load(json_file) return data -def run_telemetry(): - telemetry = None - try: - enable_telemetry = get_bool_env('ENABLE_TELEMETRY', False) - if enable_telemetry: - otel_server = os.getenv('TELEMETRY_SERVER', "https://otel.helming.xyz") - telemetry = Telemetry(otel_server, "homeassistant-addon-viessmann-gridbox-edge") - telemetry.log_as_span("Telemetry enabled", level=logger.level) - except Exception as e: - logger.error(f"Error while setting up telemetry: {e}") - return telemetry - def live_data_task(gridboxConnector:GridboxConnector, ha_viessmann_device:HAViessmannGridboxConnector, WAIT): one_time_print = True while True: diff --git a/GridboxConnectorAddon-edge/cloudSettings.json b/GridboxConnectorAddon-edge/cloudSettings.json index b8a3657..04d751e 100644 --- a/GridboxConnectorAddon-edge/cloudSettings.json +++ b/GridboxConnectorAddon-edge/cloudSettings.json @@ -1,5 +1,5 @@ { - "version": "2.11.19", + "version": "2.11.20", "urls": { "login": "https://gridx.eu.auth0.com/oauth/token", "gateways": "https://api.gridx.de/gateways", diff --git a/GridboxConnectorAddon-edge/config.yaml b/GridboxConnectorAddon-edge/config.yaml index 49c9f6c..6565947 100644 --- a/GridboxConnectorAddon-edge/config.yaml +++ b/GridboxConnectorAddon-edge/config.yaml @@ -1,7 +1,7 @@ # https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config --- name: Viessmann Gridbox Connector (edge) -version: "2.11.19" +version: "2.11.20" slug: "gridbox_connector_edge" description: "Viessmann Gridbox Connector (edge)" url: "https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox/tree/main/GridboxConnectorAddon-edge" diff --git a/GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json b/GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json index b8a3657..04d751e 100644 --- a/GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json +++ b/GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json @@ -1,5 +1,5 @@ { - "version": "2.11.19", + "version": "2.11.20", "urls": { "login": "https://gridx.eu.auth0.com/oauth/token", "gateways": "https://api.gridx.de/gateways",