From ff0d57e1f0a9e48c291e0c619d9659c515f4fdef Mon Sep 17 00:00:00 2001 From: jrester Date: Thu, 3 Feb 2022 10:14:08 +0100 Subject: [PATCH] Bump version to 0.3.15 --- CHANGELOG | 6 ++++++ LICENSE | 2 +- README.md | 8 ++++++++ setup.py | 2 +- tesla_powerwall/__init__.py | 2 +- tests/unit/test_powerwall.py | 2 +- 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0d7b8af..d59187e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,11 @@ # Changelog + +## [0.3.15] + +- fix version pin when there is a sha trailer (https://github.com/jrester/tesla_powerwall/pull/34) +- Add support for fetching the gateway_din (https://github.com/jrester/tesla_powerwall/pull/33) + ## [0.3.14] - revert changes from 0.3.11: diff --git a/LICENSE b/LICENSE index 20239b3..76ed278 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Jrester +Copyright (c) 2022 Jrester Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index e9a7ff2..34ef25b 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Powerwall Software versions from 1.45.0 to 1.50.1 as well as 20.40 to 21.39.1 ar - [Grid Status](#grid-status) - [Operation mode](#operation-mode) - [Powerwalls Serial Numbers](#powerwalls-serial-numbers) + - [Gateway DIN](#gateway-din) - [VIN](#vin) ## Installation @@ -360,6 +361,13 @@ serials = powerwall.get_serial_numbers() #=> ["...", "...", ...] ``` +### Gateway DIN + +```python +din = powerwall.get_gateway_din() +#=> 4159645-02-A--TGXXX +``` + ### VIN ```python diff --git a/setup.py b/setup.py index 4a14be4..7056831 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ name="tesla_powerwall", author="Jrester", author_email="jrester379@gmail.com", - version='0.3.14', + version='0.3.15', description="API for Tesla Powerwall", long_description=long_description, long_description_content_type="text/markdown", diff --git a/tesla_powerwall/__init__.py b/tesla_powerwall/__init__.py index 14cc176..62130a1 100644 --- a/tesla_powerwall/__init__.py +++ b/tesla_powerwall/__init__.py @@ -33,4 +33,4 @@ ) from .powerwall import Powerwall -VERSION = "0.3.14" +VERSION = "0.3.15" diff --git a/tests/unit/test_powerwall.py b/tests/unit/test_powerwall.py index 12b8e55..a50ad4c 100644 --- a/tests/unit/test_powerwall.py +++ b/tests/unit/test_powerwall.py @@ -166,7 +166,7 @@ def test_get_status(self): ), ) self.assertEqual(status.device_type, DeviceType.GW1) - self.assertEqual(status.version, "1.50.1") + self.assertEqual(status.version, "1.50.1 c58c2df3") @responses.activate def test_get_device_type(self):