From ed85c659beffb8c3415ad641a0a13aa5440bb896 Mon Sep 17 00:00:00 2001 From: SMKRV Date: Fri, 29 Nov 2024 16:38:41 +0300 Subject: [PATCH] docs(license): Switch to CC BY-NC-SA 4.0 --- custom_components/ha_text_ai/__init__.py | 9 ++++++++- custom_components/ha_text_ai/api_client.py | 9 ++++++++- custom_components/ha_text_ai/config_flow.py | 9 ++++++++- custom_components/ha_text_ai/const.py | 9 ++++++++- custom_components/ha_text_ai/coordinator.py | 11 +++++++++-- custom_components/ha_text_ai/sensor.py | 9 ++++++++- custom_components/ha_text_ai/translations/de.json | 5 +++++ custom_components/ha_text_ai/translations/en.json | 5 +++++ custom_components/ha_text_ai/translations/es.json | 5 +++++ custom_components/ha_text_ai/translations/hi.json | 5 +++++ custom_components/ha_text_ai/translations/it.json | 5 +++++ custom_components/ha_text_ai/translations/ru.json | 5 +++++ custom_components/ha_text_ai/translations/sr.json | 5 +++++ custom_components/ha_text_ai/translations/zh.json | 5 +++++ 14 files changed, 89 insertions(+), 7 deletions(-) diff --git a/custom_components/ha_text_ai/__init__.py b/custom_components/ha_text_ai/__init__.py index f7666e2..2aefca7 100644 --- a/custom_components/ha_text_ai/__init__.py +++ b/custom_components/ha_text_ai/__init__.py @@ -1,4 +1,11 @@ -"""The HA Text AI integration.""" +""" +The HA Text AI integration. + +@license: CC BY-NC-SA 4.0 International +@author: SMKRV +@github: https://github.com/smkrv/ha-text-ai +@source: https://github.com/smkrv/ha-text-ai +""" from __future__ import annotations import logging diff --git a/custom_components/ha_text_ai/api_client.py b/custom_components/ha_text_ai/api_client.py index e3f8255..7f2a358 100644 --- a/custom_components/ha_text_ai/api_client.py +++ b/custom_components/ha_text_ai/api_client.py @@ -1,4 +1,11 @@ -"""API Client for HA Text AI.""" +""" +API Client for HA Text AI. + +@license: CC BY-NC-SA 4.0 International +@author: SMKRV +@github: https://github.com/smkrv/ha-text-ai +@source: https://github.com/smkrv/ha-text-ai +""" import logging import asyncio from typing import Any, Dict, List, Optional diff --git a/custom_components/ha_text_ai/config_flow.py b/custom_components/ha_text_ai/config_flow.py index c666299..75f74a9 100644 --- a/custom_components/ha_text_ai/config_flow.py +++ b/custom_components/ha_text_ai/config_flow.py @@ -1,4 +1,11 @@ -"""Config flow for HA text AI integration.""" +""" +Config flow for HA text AI integration. + +@license: CC BY-NC-SA 4.0 International +@author: SMKRV +@github: https://github.com/smkrv/ha-text-ai +@source: https://github.com/smkrv/ha-text-ai +""" import logging from typing import Any, Dict, Optional diff --git a/custom_components/ha_text_ai/const.py b/custom_components/ha_text_ai/const.py index 2fa1be2..5671958 100644 --- a/custom_components/ha_text_ai/const.py +++ b/custom_components/ha_text_ai/const.py @@ -1,4 +1,11 @@ -"""Constants for the HA text AI integration.""" +""" +Constants for the HA text AI integration. + +@license: CC BY-NC-SA 4.0 International +@author: SMKRV +@github: https://github.com/smkrv/ha-text-ai +@source: https://github.com/smkrv/ha-text-ai +""" from typing import Final import voluptuous as vol from homeassistant.const import Platform, CONF_API_KEY, CONF_NAME diff --git a/custom_components/ha_text_ai/coordinator.py b/custom_components/ha_text_ai/coordinator.py index a2771c9..b792857 100644 --- a/custom_components/ha_text_ai/coordinator.py +++ b/custom_components/ha_text_ai/coordinator.py @@ -1,4 +1,11 @@ -"""The HA Text AI coordinator.""" +""" +The HA Text AI coordinator. + +@license: CC BY-NC-SA 4.0 International +@author: SMKRV +@github: https://github.com/smkrv/ha-text-ai +@source: https://github.com/smkrv/ha-text-ai +""" from __future__ import annotations import logging @@ -11,7 +18,7 @@ from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from homeassistant.util import dt as dt_util from homeassistant.exceptions import HomeAssistantError from homeassistant.const import CONF_NAME -from .config_flow import normalize_name +from .config_flow import normalize_name from .const import ( DOMAIN, diff --git a/custom_components/ha_text_ai/sensor.py b/custom_components/ha_text_ai/sensor.py index 0e1f2e6..52f952b 100644 --- a/custom_components/ha_text_ai/sensor.py +++ b/custom_components/ha_text_ai/sensor.py @@ -1,4 +1,11 @@ -"""Sensor platform for HA Text AI.""" +""" +Sensor platform for HA Text AI. + +@license: CC BY-NC-SA 4.0 International +@author: SMKRV +@github: https://github.com/smkrv/ha-text-ai +@source: https://github.com/smkrv/ha-text-ai +""" import logging import math from typing import Any, Dict diff --git a/custom_components/ha_text_ai/translations/de.json b/custom_components/ha_text_ai/translations/de.json index 28520cb..b9ae4f0 100644 --- a/custom_components/ha_text_ai/translations/de.json +++ b/custom_components/ha_text_ai/translations/de.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/en.json b/custom_components/ha_text_ai/translations/en.json index 99a87c5..0c7f8c5 100644 --- a/custom_components/ha_text_ai/translations/en.json +++ b/custom_components/ha_text_ai/translations/en.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/es.json b/custom_components/ha_text_ai/translations/es.json index c978350..737c10e 100644 --- a/custom_components/ha_text_ai/translations/es.json +++ b/custom_components/ha_text_ai/translations/es.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/hi.json b/custom_components/ha_text_ai/translations/hi.json index fbf576b..dfcaac2 100644 --- a/custom_components/ha_text_ai/translations/hi.json +++ b/custom_components/ha_text_ai/translations/hi.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/it.json b/custom_components/ha_text_ai/translations/it.json index 673fee3..3b5bf6c 100644 --- a/custom_components/ha_text_ai/translations/it.json +++ b/custom_components/ha_text_ai/translations/it.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/ru.json b/custom_components/ha_text_ai/translations/ru.json index 906afd2..e10a759 100644 --- a/custom_components/ha_text_ai/translations/ru.json +++ b/custom_components/ha_text_ai/translations/ru.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/sr.json b/custom_components/ha_text_ai/translations/sr.json index 711aa93..5fea6d8 100644 --- a/custom_components/ha_text_ai/translations/sr.json +++ b/custom_components/ha_text_ai/translations/sr.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": { diff --git a/custom_components/ha_text_ai/translations/zh.json b/custom_components/ha_text_ai/translations/zh.json index b3955e3..a600d87 100644 --- a/custom_components/ha_text_ai/translations/zh.json +++ b/custom_components/ha_text_ai/translations/zh.json @@ -1,4 +1,9 @@ { + "metadata": { + "author": "SMKRV", + "license": "CC BY-NC-SA 4.0 International", + "copyright": "© 2024" + }, "config": { "step": { "provider": {