Skip to content

Commit

Permalink
🐛 FIX: token invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Jul 12, 2024
1 parent 0191245 commit c797f64
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 5 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.7.5"
current_version = "2.7.6"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
Expand Down
25 changes: 25 additions & 0 deletions GridboxConnectorAddon-dev/Dockerfile.standalone
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
FROM python:3.10-alpine

# Build arguments
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION

LABEL \
org.opencontainers.image.source="https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox" \
org.opencontainers.image.authors="Simon Helming <[email protected]>" \
maintainer="Simon Helming <[email protected]>"\
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}

# Copy root filesystem
COPY GridboxConnectorAddon-edge/GridboxConnector/ /build/GridboxConnector

RUN cd /build/GridboxConnector && pip install -r requirements.txt

ENTRYPOINT ["python3", "/build/GridboxConnector"]
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.7.6

### 🔨 Fixed

- if list of values is empty refresh token

## 2.7.5

### 🔨 Fixed
Expand Down
4 changes: 3 additions & 1 deletion GridboxConnectorAddon-edge/GridboxConnector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ def load_gridbox_config():
logger.info(result)
one_time_print = False
# Wait until fetch new values in seconds
time.sleep(WAIT)
else:
gridboxConnector.get_token()
time.sleep(WAIT)
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.7.5",
"version": "2.7.6",
"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.7.5"
version: "2.7.6"
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.7.5",
"version": "2.7.6",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down

0 comments on commit c797f64

Please sign in to comment.