mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-30 12:23:55 +08:00
Release v2.0.0-alpha
This commit is contained in:
@@ -89,7 +89,7 @@ async def async_setup(hass: HomeAssistant, config: Dict[str, Any]) -> bool:
|
|||||||
source = os.path.join(os.path.dirname(__file__), 'icons', 'icon.svg')
|
source = os.path.join(os.path.dirname(__file__), 'icons', 'icon.svg')
|
||||||
dest_dir = os.path.join(hass.config.path('www'), 'icons')
|
dest_dir = os.path.join(hass.config.path('www'), 'icons')
|
||||||
os.makedirs(dest_dir, exist_ok=True)
|
os.makedirs(dest_dir, exist_ok=True)
|
||||||
dest = os.path.join(dest_dir, 'icon.svg')
|
dest = os.path.join(dest_dir, 'icon.png')
|
||||||
if not os.path.exists(dest):
|
if not os.path.exists(dest):
|
||||||
shutil.copyfile(source, dest)
|
shutil.copyfile(source, dest)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 678 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
+20
-14
@@ -2,18 +2,24 @@
|
|||||||
ha-text-ai/
|
ha-text-ai/
|
||||||
│
|
│
|
||||||
├── custom_components/
|
├── custom_components/
|
||||||
│ └── ha_text_ai/
|
├── ha_text_ai/
|
||||||
│ ├── __init__.py
|
│ ├── __init__.py
|
||||||
│ ├── config_flow.py
|
│ ├── config_flow.py
|
||||||
│ ├── coordinator.py
|
│ ├── coordinator.py
|
||||||
│ ├── manifest.json
|
│ ├── manifest.json
|
||||||
│ ├── sensor.py
|
│ ├── sensor.py
|
||||||
│ ├── services.yaml
|
│ ├── services.yaml
|
||||||
│ ├── const.py
|
│ ├── const.py
|
||||||
│ └── api_client.py
|
│ └── api_client.py
|
||||||
│
|
│
|
||||||
└── strings/
|
├── translations/
|
||||||
├── en.json
|
│ ├── en.json
|
||||||
├── de.json
|
│ ├── de.json
|
||||||
└── ru.json
|
│ └── ru.json
|
||||||
|
│
|
||||||
|
└── icons/
|
||||||
|
├── icon.png
|
||||||
|
├── icon@2x.png
|
||||||
|
├── logo.png
|
||||||
|
└── logo@2x.png
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user