Skip to content

Commit

Permalink
Commit changes for Release v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ngardiner committed Feb 28, 2022
1 parent eb27c83 commit 1d3b7da
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ This document logs the changes per release of TWCManager.

## v1.3.0 - Latest Development version

## v1.2.6 - 2022-02-28

* Bugfixes:
* (@ngardiner) - Fix for exception regarding serialization of bytes object in JSON data for Tesla Auth Flow
* (@ngardiner) - First revision of self-update mechanism for TWCManager - will be activated once v1.3.0 is released

## v1.2.5 - 2022-02-27

* Bugfixes:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TWCManager

[![Stable Release](https://img.shields.io/badge/Stable_Release-1.2.5-blue)](https://github.com/ngardiner/TWCManager/releases/tag/v1.2.5)
[![Stable Release](https://img.shields.io/badge/Stable_Release-1.2.6-blue)](https://github.com/ngardiner/TWCManager/releases/tag/v1.2.6)
[![Development Release](https://img.shields.io/badge/Devel_Release-1.3.0-green.svg)](https://github.com/ngardiner/TWCManager/tree/main)
![Build Status](https://github.com/ngardiner/TWCManager/actions/workflows/test_suite.yml/badge.svg)
![GitHub commits](https://img.shields.io/github/commit-activity/m/ngardiner/TWCManager)
Expand Down
9 changes: 7 additions & 2 deletions lib/TWCManager/Control/HTTPControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,11 @@ def do_GET(self):

if self.url.path == "/upgrade":
# This is extremely beta
# Attempt a self-update of TWCManager by calling pip
self.send_response(200)
self.send_header("Content-type", "text/html")
self.end_headers()

self.template = self.templateEnv.get_template("upgrade.html.j2")
page = self.template.render(self.__dict__)

Expand All @@ -826,10 +831,10 @@ def do_GET(self):
"--upgrade",
"TWCManager",
]
)
).decode("UTF-8")
except subprocess.CalledProcessError as error:
page += "An error occurred attempting upgrade: " + str(
error.output()
error
)

self.wfile.write(page.encode("utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion lib/TWCManager/Control/themes/Default/navbar.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<span class='navbar-text'>v{{ master.version }}</span>
{% if checkForUpdates() %}
&nbsp;
<span class='navbar-text'>(v{{ checkForUpdates() }} Available)</span>
<span class='navbar-text'>(<a href="/upgradePrompt">v{{ checkForUpdates() }} Available</a>)</span>
{% endif %}
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion lib/TWCManager/TWCMaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TWCMaster:
teslaLoginAskLater = False
TWCID = None
updateVersion = False
version = "1.2.5"
version = "1.2.6"

# TWCs send a seemingly-random byte after their 2-byte TWC id in a number of
# messages. I call this byte their "Sign" for lack of a better term. The byte
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="TWCManager",
version="1.2.5",
version="1.2.6",
package_dir={"": "lib"},
packages=find_namespace_packages(where="lib"),
python_requires=">= 3.6",
Expand Down

0 comments on commit 1d3b7da

Please sign in to comment.