File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change
1
+ Version 0.5.2 (2022-11-08)
2
+ - Bugfix: Fix page load with special characters in states (Issue #217)
3
+
1
4
Version 0.5.1 (2022-09-08)
2
5
- Bugfix: Disable Ace-internal yaml-linting (Issue #226)
3
6
- Disable internal check for new releases
Original file line number Diff line number Diff line change 110
110
SO .setFormatter (
111
111
logging .Formatter ('%(levelname)s:%(asctime)s:%(name)s:%(message)s' ))
112
112
LOG .addHandler (SO )
113
- VERSION = "0.5.1 "
113
+ VERSION = "0.5.2 "
114
114
BASEDIR = "."
115
115
DEV = False
116
116
LISTENPORT = None
@@ -826,7 +826,17 @@ def do_GET(self):
826
826
req = urllib .request .Request ("%sstates" % HASS_API ,
827
827
headers = headers , method = 'GET' )
828
828
with urllib .request .urlopen (req ) as response :
829
- states = response .read ().decode ('utf-8' )
829
+ states_clean = []
830
+ for state in json .loads (response .read ().decode ('utf-8' )):
831
+ states_clean .append (
832
+ {
833
+ "entity_id" : state .get ("entity_id" , "" ),
834
+ "attributes" :
835
+ {"friendly_name" : state .get ("attributes" , {}).get (
836
+ "friendly_name" , state .get ("entity_id" , "" ))}
837
+ }
838
+ )
839
+ states = json .dumps (states_clean )
830
840
831
841
except Exception as err :
832
842
LOG .warning ("Exception getting bootstrap" )
Original file line number Diff line number Diff line change 4
4
5
5
NAME = "hass-configurator"
6
6
PACKAGE_NAME = "hass_configurator"
7
- VERSION = "0.5.1 "
7
+ VERSION = "0.5.2 "
8
8
9
9
setup (name = NAME ,
10
10
version = VERSION ,
You can’t perform that action at this time.
0 commit comments