From ce40ad30e8a71e057d1139769f611d831c6cbf40 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 16 May 2020 16:21:31 +0100 Subject: [PATCH 1/4] Add CHANGELOG --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8bb1f81 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# 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). + +## [Unreleased] + +## [0.3.0] - 2020-04-16 +### Added +- Support for Home Assistant autodiscovery + + +[Unreleased]: https://github.com/nikdoof/aaisp2mqtt/compare/0.3.0...HEAD +[0.3.0]: https://github.com/nikdoof/aaisp2mqtt/compare/0.3.0 \ No newline at end of file From 5a41ae16b8c42655f67154ccb53c33e98b1463ee Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 16 May 2020 17:52:17 +0100 Subject: [PATCH 2/4] Call paho loop to ensure messages are sent --- aaisp2mqtt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aaisp2mqtt.py b/aaisp2mqtt.py index 79d87a1..d35c567 100644 --- a/aaisp2mqtt.py +++ b/aaisp2mqtt.py @@ -162,6 +162,7 @@ def main(): # disconnect LOG.info('Disconnecting from MQTT') + client.loop() client.disconnect() From f82f3da790e9a1a9764a5601483098a2d8a8c4b9 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 11 Jul 2020 11:20:26 +0100 Subject: [PATCH 3/4] Update Changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bb1f81..efb9629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ 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). ## [Unreleased] +### Fixed +- Resolved issue where messages were not being delivered to the MQTT server in time for disconnection. ## [0.3.0] - 2020-04-16 ### Added From 0be702f66355152316b33575cbe562dab8c7f204 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 1 Oct 2020 07:08:32 +0100 Subject: [PATCH 4/4] Version 0.3.1 --- CHANGELOG.md | 4 ++-- aaisp2mqtt.py | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efb9629..d569afc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,13 @@ 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). -## [Unreleased] +## [0.3.1] ### Fixed - Resolved issue where messages were not being delivered to the MQTT server in time for disconnection. ## [0.3.0] - 2020-04-16 ### Added -- Support for Home Assistant autodiscovery +- Support for Home Assistant auto-discovery [Unreleased]: https://github.com/nikdoof/aaisp2mqtt/compare/0.3.0...HEAD diff --git a/aaisp2mqtt.py b/aaisp2mqtt.py index d35c567..498f89a 100644 --- a/aaisp2mqtt.py +++ b/aaisp2mqtt.py @@ -14,7 +14,7 @@ import requests LOG = logging.getLogger(__name__) -VERSION = '0.3.0' +VERSION = '0.3.1' AAISP_INFO_URL = 'https://chaos2.aa.net.uk/broadband/info' diff --git a/setup.py b/setup.py index 056b8fd..6b6f523 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r") as fh: setup( name='aaisp2mqtt', - version='0.3.0', + version='0.3.1', description='A script to publish Andrews & Arnold / AAISP broadband quota and sync rates to MQTT', long_description=long_description, long_description_content_type='text/markdown',