Skip to content

Commit

Permalink
🐛 FIX: fixed config options
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Jan 2, 2025
1 parent bdc283e commit 1e4c1cd
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 13 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.40"
current_version = "2.11.41"
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.41

### 🔨 Fixed

- fixed telemetry default value

## 2.11.40

### 🔨 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='dev', token=logfire_token)
logfire.configure(environment='edge', token=logfire_token)
logfire.instrument_requests()
logger.addHandler(logfire.LogfireLoggingHandler())
except Exception as e:
Expand Down
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.40",
"version": "2.11.41",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
5 changes: 4 additions & 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.40"
version: "2.11.41"
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 All @@ -22,6 +22,8 @@ options:
password: "password"
wait_time: 60
log_level: INFO
enable_telemetry: False

schema:
username: str
password: password
Expand All @@ -31,5 +33,6 @@ schema:
OverrideMqttServer: str?
OverrideMqttPort: int?
log_level: list(TRACE|DEBUG|INFO|WARNING|ERROR)
enable_telemetry: bool
image: ghcr.io/unl0ck/homeassistant-addon-viessmann-gridbox-dev-{arch}
stage: experimental
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.40",
"version": "2.11.41",
"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.41

### 🔨 Fixed

- fixed telemetry default value

## 2.11.40

### 🔨 Fixed
Expand Down
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.40",
"version": "2.11.41",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
4 changes: 2 additions & 2 deletions 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.40"
version: "2.11.41"
slug: "gridbox_connector_edge"
description: "Viessmann Gridbox Connector (edge)"
url: "https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox/tree/main/GridboxConnectorAddon-edge"
Expand All @@ -23,7 +23,7 @@ options:
password: "password"
wait_time: 60
log_level: INFO
enable_telemetry: false
enable_telemetry: False

schema:
username: str
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.40",
"version": "2.11.41",
"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.41

### 🔨 Fixed

- fixed telemetry default value

## 2.11.40

### 🔨 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(token=logfire_token)
logfire.configure(environment='edge', token=logfire_token)
logfire.instrument_requests()
logger.addHandler(logfire.LogfireLoggingHandler())
except Exception as e:
Expand Down
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.40",
"version": "2.11.41",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
5 changes: 4 additions & 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.40"
version: "2.11.41"
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 All @@ -22,6 +22,8 @@ options:
password: "password"
wait_time: 60
log_level: INFO
enable_telemetry: False

schema:
username: str
password: password
Expand All @@ -31,4 +33,5 @@ schema:
OverrideMqttServer: str?
OverrideMqttPort: int?
log_level: list(TRACE|DEBUG|INFO|WARNING|ERROR)
enable_telemetry: bool
image: ghcr.io/unl0ck/homeassistant-addon-viessmann-gridbox-{arch}
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.40",
"version": "2.11.41",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down

0 comments on commit 1e4c1cd

Please sign in to comment.