diff --git a/custom_components/ha_text_ai/__init__.py b/custom_components/ha_text_ai/__init__.py index d99090f..5c639e0 100644 --- a/custom_components/ha_text_ai/__init__.py +++ b/custom_components/ha_text_ai/__init__.py @@ -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') dest_dir = os.path.join(hass.config.path('www'), 'icons') 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): shutil.copyfile(source, dest) except Exception as ex: diff --git a/custom_components/ha_text_ai/icons/icon.png b/custom_components/ha_text_ai/icons/icon.png new file mode 100644 index 0000000..0fc039a Binary files /dev/null and b/custom_components/ha_text_ai/icons/icon.png differ diff --git a/custom_components/ha_text_ai/icons/icon.svg b/custom_components/ha_text_ai/icons/icon.svg deleted file mode 100644 index 7feb3e7..0000000 --- a/custom_components/ha_text_ai/icons/icon.svg +++ /dev/null @@ -1,12902 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/custom_components/ha_text_ai/icons/icon@2x.png b/custom_components/ha_text_ai/icons/icon@2x.png new file mode 100644 index 0000000..49a4898 Binary files /dev/null and b/custom_components/ha_text_ai/icons/icon@2x.png differ diff --git a/custom_components/ha_text_ai/icons/logo.png b/custom_components/ha_text_ai/icons/logo.png new file mode 100644 index 0000000..005ca6d Binary files /dev/null and b/custom_components/ha_text_ai/icons/logo.png differ diff --git a/custom_components/ha_text_ai/icons/logo@2x.png b/custom_components/ha_text_ai/icons/logo@2x.png new file mode 100644 index 0000000..54b405d Binary files /dev/null and b/custom_components/ha_text_ai/icons/logo@2x.png differ diff --git a/structure.md b/structure.md index 7fc498a..54a472d 100644 --- a/structure.md +++ b/structure.md @@ -2,18 +2,24 @@ ha-text-ai/ │ ├── custom_components/ -│ └── ha_text_ai/ -│ ├── __init__.py -│ ├── config_flow.py -│ ├── coordinator.py -│ ├── manifest.json -│ ├── sensor.py -│ ├── services.yaml -│ ├── const.py -│ └── api_client.py -│ -└── strings/ - ├── en.json - ├── de.json - └── ru.json + ├── ha_text_ai/ + │ ├── __init__.py + │ ├── config_flow.py + │ ├── coordinator.py + │ ├── manifest.json + │ ├── sensor.py + │ ├── services.yaml + │ ├── const.py + │ └── api_client.py + │ + ├── translations/ + │ ├── en.json + │ ├── de.json + │ └── ru.json + │ + └── icons/ + ├── icon.png + ├── icon@2x.png + ├── logo.png + └── logo@2x.png ```