From be7b14526cbce8a33442eb5e7578de1cc70f5b9c Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Thu, 8 Sep 2022 21:45:59 +0200 Subject: [PATCH 1/2] Disable yaml-lint in Ace #226 --- changelog.txt | 4 ++++ hass_configurator/configurator.py | 10 +--------- hass_configurator/dev.html | 6 ++++-- setup.py | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/changelog.txt b/changelog.txt index 6ff2c78..01219c9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +Version 0.5.1 (2022-09-08) +- Bugfix: Disable Ace-internal yaml-linting (Issue #226) +- Disable internal check for new releases + Version 0.5.0 (2022-08-22) - Add Generate UUID menu item @javawizard - Harmonize Home Assistant term @salim-b diff --git a/hass_configurator/configurator.py b/hass_configurator/configurator.py index dd68ee6..d1037f1 100644 --- a/hass_configurator/configurator.py +++ b/hass_configurator/configurator.py @@ -111,7 +111,7 @@ logging.Formatter('%(levelname)s:%(asctime)s:%(name)s:%(message)s')) LOG.addHandler(SO) RELEASEURL = "https://api.github.com/repos/danielperna84/hass-configurator/releases/latest" -VERSION = "0.5.0" +VERSION = "0.5.1" BASEDIR = "." DEV = False LISTENPORT = None @@ -834,14 +834,6 @@ def do_GET(self): LOG.warning(err) color = "" - try: - response = urllib.request.urlopen(RELEASEURL) - latest = json.loads(response.read().decode('utf-8'))['tag_name'] - if VERSION != latest: - color = "red-text" - except Exception as err: - LOG.warning("Exception getting release") - LOG.warning(err) ws_api = "" if HASS_API: protocol, uri = HASS_API.split("//") diff --git a/hass_configurator/dev.html b/hass_configurator/dev.html index 6be0900..8719d6c 100644 --- a/hass_configurator/dev.html +++ b/hass_configurator/dev.html @@ -2873,7 +2873,8 @@

Date: Thu, 8 Sep 2022 21:47:50 +0200 Subject: [PATCH 2/2] Remove release URL --- hass_configurator/configurator.py | 1 - 1 file changed, 1 deletion(-) diff --git a/hass_configurator/configurator.py b/hass_configurator/configurator.py index d1037f1..755ba4a 100644 --- a/hass_configurator/configurator.py +++ b/hass_configurator/configurator.py @@ -110,7 +110,6 @@ SO.setFormatter( logging.Formatter('%(levelname)s:%(asctime)s:%(name)s:%(message)s')) LOG.addHandler(SO) -RELEASEURL = "https://api.github.com/repos/danielperna84/hass-configurator/releases/latest" VERSION = "0.5.1" BASEDIR = "." DEV = False