From b344d9df0d8aec13e3847da5fd5e80b3f5c417f6 Mon Sep 17 00:00:00 2001 From: unl0ck Date: Fri, 27 Dec 2024 00:41:33 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20logfire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion-edge.toml | 2 +- GridboxConnectorAddon-edge/CHANGELOG.md | 6 +++++- GridboxConnectorAddon-edge/GridboxConnector/__main__.py | 4 +--- GridboxConnectorAddon-edge/cloudSettings.json | 2 +- GridboxConnectorAddon-edge/config.yaml | 2 +- GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.bumpversion-edge.toml b/.bumpversion-edge.toml index 6bb9f6a..6058887 100644 --- a/.bumpversion-edge.toml +++ b/.bumpversion-edge.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "2.11.32" +current_version = "2.11.33" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}" diff --git a/GridboxConnectorAddon-edge/CHANGELOG.md b/GridboxConnectorAddon-edge/CHANGELOG.md index 3e22214..16a67e6 100644 --- a/GridboxConnectorAddon-edge/CHANGELOG.md +++ b/GridboxConnectorAddon-edge/CHANGELOG.md @@ -1,6 +1,10 @@ -## 2.11.32 +## 2.11.33 + +### 🔨 Fixed + +- logfire ### 🔄 Changed diff --git a/GridboxConnectorAddon-edge/GridboxConnector/__main__.py b/GridboxConnectorAddon-edge/GridboxConnector/__main__.py index 31a8714..0fd6da3 100644 --- a/GridboxConnectorAddon-edge/GridboxConnector/__main__.py +++ b/GridboxConnectorAddon-edge/GridboxConnector/__main__.py @@ -23,11 +23,9 @@ logfire_token = os.getenv('LOGFIRE_TOKEN', '4nzH9rJ0GBZ4QJNY5GQM6tTh2bFTTyfrsrw6ytZ1xGT9') enable_telemetry = os.getenv('ENABLE_TELEMETRY', False) if logfire_token and enable_telemetry: - logfire.configure() + logfire.configure(environment='edge', token=logfire_token) logfire.instrument_requests() logger.addHandler(logfire.LogfireLoggingHandler()) - else: - logger.warning(f"Logfire not configured [token: {logfire_token}, enable_telemetry: {enable_telemetry}]") except Exception as e: logger.error(f"Error configuring logfire: {e}") diff --git a/GridboxConnectorAddon-edge/cloudSettings.json b/GridboxConnectorAddon-edge/cloudSettings.json index b3398c6..8a4e93a 100644 --- a/GridboxConnectorAddon-edge/cloudSettings.json +++ b/GridboxConnectorAddon-edge/cloudSettings.json @@ -1,5 +1,5 @@ { - "version": "2.11.32", + "version": "2.11.33", "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 cec588e..5f2e8c4 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.32" +version: "2.11.33" 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 b3398c6..8a4e93a 100644 --- a/GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json +++ b/GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json @@ -1,5 +1,5 @@ { - "version": "2.11.32", + "version": "2.11.33", "urls": { "login": "https://gridx.eu.auth0.com/oauth/token", "gateways": "https://api.gridx.de/gateways",