Skip to content

Commit

Permalink
🐛 FIX: enviroment logfire
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Jan 2, 2025
1 parent 1e4c1cd commit f7f4e19
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .bumpversion-edge.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "2.11.41"
current_version = "2.11.42"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
Expand Down
6 changes: 6 additions & 0 deletions GridboxConnectorAddon-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 2.11.42

### 🔨 Fixed

- set correct environment

## 2.11.41

### 🔨 Fixed
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-dev/GridboxConnector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
logfire_token = os.getenv('LOGFIRE_TOKEN', '4nzH9rJ0GBZ4QJNY5GQM6tTh2bFTTyfrsrw6ytZ1xGT9')
enable_telemetry = os.getenv('ENABLE_TELEMETRY', False)
if logfire_token and enable_telemetry:
logfire.configure(environment='edge', token=logfire_token)
logfire.configure(environment='dev', token=logfire_token)
logfire.instrument_requests()
logger.addHandler(logfire.LogfireLoggingHandler())
except Exception as e:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ha-mqtt-discoverable==0.16.4
requests==2.32.3
viessmann-gridbox-connector==1.6.0
viessmann-gridbox-connector==1.7.2
logfire==2.11.0
opentelemetry-instrumentation-requests==0.50b0
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-dev/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.41",
"version": "2.11.42",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-dev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Viessmann Gridbox Connector (dev)
version: "2.11.41"
version: "2.11.42"
slug: "gridbox_connector_dev"
description: Development version of Viessmann Gridbox Connector
url: "https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox/tree/main/GridboxConnectorAddon-dev"
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-dev/rootfs/share/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.41",
"version": "2.11.42",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
6 changes: 6 additions & 0 deletions GridboxConnectorAddon-edge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 2.11.42

### 🔨 Fixed

- set correct environment

## 2.11.41

### 🔨 Fixed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ha-mqtt-discoverable==0.16.4
requests==2.32.3
viessmann-gridbox-connector==1.6.0
viessmann-gridbox-connector==1.7.2
logfire==2.11.0
opentelemetry-instrumentation-requests==0.50b0
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.41",
"version": "2.11.42",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
---
name: Viessmann Gridbox Connector (edge)
version: "2.11.41"
version: "2.11.42"
slug: "gridbox_connector_edge"
description: "Viessmann Gridbox Connector (edge)"
url: "https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox/tree/main/GridboxConnectorAddon-edge"
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.41",
"version": "2.11.42",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
6 changes: 6 additions & 0 deletions GridboxConnectorAddon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 2.11.42

### 🔨 Fixed

- set correct environment

## 2.11.41

### 🔨 Fixed
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon/GridboxConnector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
logfire_token = os.getenv('LOGFIRE_TOKEN', '4nzH9rJ0GBZ4QJNY5GQM6tTh2bFTTyfrsrw6ytZ1xGT9')
enable_telemetry = os.getenv('ENABLE_TELEMETRY', False)
if logfire_token and enable_telemetry:
logfire.configure(environment='edge', token=logfire_token)
logfire.configure(environment='live', token=logfire_token)
logfire.instrument_requests()
logger.addHandler(logfire.LogfireLoggingHandler())
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon/GridboxConnector/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ha-mqtt-discoverable==0.16.4
requests==2.32.3
viessmann-gridbox-connector==1.6.0
viessmann-gridbox-connector==1.7.2
logfire==2.11.0
opentelemetry-instrumentation-requests==0.50b0
2 changes: 1 addition & 1 deletion GridboxConnectorAddon/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.41",
"version": "2.11.42",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Viessmann Gridbox Connector
version: "2.11.41"
version: "2.11.42"
slug: "gridbox_connector"
description: Fetch your live data from your Viessmann Gridbox
url: "https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox/tree/main/GridboxConnectorAddon"
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon/rootfs/share/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.41",
"version": "2.11.42",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down

0 comments on commit f7f4e19

Please sign in to comment.