Skip to content

Commit

Permalink
👌 IMPROVE: make disable telemetry in options
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Dec 26, 2024
1 parent 8aa792b commit 5dc2bd0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 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.28"
current_version = "2.11.29"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
Expand Down
3 changes: 2 additions & 1 deletion GridboxConnectorAddon-edge/GridboxConnector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
# Retrieve logfire token from environment variable
try:
logfire_token = os.getenv('LOGFIRE_TOKEN', None)
if logfire_token:
enable_telemetry = os.getenv('ENABLE_TELEMETRY', False)
if logfire_token and enable_telemetry:
logfire.configure()
logfire.instrument_requests()
logger.addHandler(logfire.LogfireLoggingHandler())
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.28",
"version": "2.11.29",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
4 changes: 3 additions & 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.28"
version: "2.11.29"
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,6 +23,7 @@ options:
password: "password"
wait_time: 60
log_level: INFO
enable_telemetry: false

schema:
username: str
Expand All @@ -33,5 +34,6 @@ schema:
OverrideMqttServer: str?
OverrideMqttPort: int?
log_level: list(TRACE|DEBUG|INFO|WARN|ERROR)
enable_telemetry: bool
image: ghcr.io/unl0ck/homeassistant-addon-viessmann-gridbox-edge-{arch}
stage: experimental
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export USERNAME=$(bashio::config 'username')
export PASSWORD=$(bashio::config 'password')
export LOG_LEVEL=$(bashio::config 'log_level')
export ENABLE_TELEMETRY=$(bashio::config 'enable_telemetry')
export TELEMETRY_SERVER=$(bashio::config 'OverrideTelemetryUrl')
ls -lash /data
cd /build/
ls -lash
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.28",
"version": "2.11.29",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export USERNAME=$(bashio::config 'username')
export PASSWORD=$(bashio::config 'password')
export LOG_LEVEL=$(bashio::config 'log_level')
export ENABLE_TELEMETRY=$(bashio::config 'enable_telemetry')
export TELEMETRY_SERVER=$(bashio::config 'OverrideTelemetryUrl')
ls -lash /data
cd /build/
ls -lash
Expand Down

0 comments on commit 5dc2bd0

Please sign in to comment.