Skip to content

Commit

Permalink
Merge pull request #14 from ssenart/feature/13-hassio_connect_error
Browse files Browse the repository at this point in the history
[#13] Using HassIO, connection to the supervisor requires Authorizati…
  • Loading branch information
ssenart authored Jan 4, 2025
2 parents 2638e1d + 256b19c commit 165a510
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.4] - 2025-01-04

### Fixed

[#13](https://github.com/ssenart/gazpar2haws/issues/13): Using HassIO, connection to the supervisor requires Authorization header.

## [0.1.3] - 2025-01-03

### Changed

[#11](https://github.com/ssenart/gazpar2haws/issues/11): Upgrade PyGazpar version to 1.2.6.

## [0.1.2] - 2024-12-30

### Added

[#2](https://github.com/ssenart/gazpar2haws/issues/2): DockerHub deployment.

### Fixed

[#9](https://github.com/ssenart/gazpar2haws/issues/9): Incorrect timezone info creates duplicate import.

[#6](https://github.com/ssenart/gazpar2haws/issues/6): The last meter value may be imported multiple times and cause the today value being wrong.
Expand All @@ -24,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.1.1] - 2024-12-22

### Added

[#1](https://github.com/ssenart/gazpar2haws/issues/1): Publish energy indicator in kWh.

## [0.1.0] - 2024-12-21
Expand Down
2 changes: 1 addition & 1 deletion gazpar2haws/haws.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def connect(self):
ws_url = f"ws://{self._host}:{self._port}/api/websocket"

# Connect to the websocket
self._websocket = await websockets.connect(ws_url)
self._websocket = await websockets.connect(ws_url, additional_headers={"Authorization": f"Bearer {self._token}"})

# When a client connects to the server, the server sends out auth_required.
connect_response = await self._websocket.recv()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gazpar2haws"
version = "0.1.3"
version = "0.1.4"
description = "Gazpar2HAWS is a gateway that reads data history from the GrDF (French gas provider) meter and send it to Home Assistant using WebSocket interface"
authors = ["Stéphane Senart"]
license = "MIT"
Expand Down

0 comments on commit 165a510

Please sign in to comment.