From d20d27846b5d94265e1debf6aedfbdf005a5aef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Sat, 14 Oct 2023 21:13:03 +0000 Subject: [PATCH] Fix icon listing --- custom_components/fontawesome/__init__.py | 4 ++-- custom_components/fontawesome/manifest.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/custom_components/fontawesome/__init__.py b/custom_components/fontawesome/__init__.py index d779be1..5e6c375 100644 --- a/custom_components/fontawesome/__init__.py +++ b/custom_components/fontawesome/__init__.py @@ -39,8 +39,8 @@ async def get(self, request): for (dirpath, dirnames, filenames) in walk(self.iconpath): icons.extend( [ - ({"name": path.join(dirpath[len(self.iconpath):], fn[:-4])} - for fn in filenames if fn.endswith(".svg")) + {"name": path.join(dirpath[len(self.iconpath):], fn[:-4])} + for fn in filenames if fn.endswith(".svg") ] ) return json.dumps(icons) diff --git a/custom_components/fontawesome/manifest.json b/custom_components/fontawesome/manifest.json index 590f836..20f0735 100644 --- a/custom_components/fontawesome/manifest.json +++ b/custom_components/fontawesome/manifest.json @@ -7,5 +7,5 @@ "documentation": "https://github.com/thomasloven/hass-fontawesome", "iot_class": "local_polling", "requirements": [], - "version": "2.2.0" + "version": "2.2.1" } diff --git a/package-lock.json b/package-lock.json index aba8357..a1afcbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fontawesome", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 206bec7..a7dbda8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fontawesome", "private": true, - "version": "2.2.0", + "version": "2.2.1", "description": "", "scripts": { "export": "./export.sh",