Skip to content

Commit

Permalink
Hassfest validation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
black-roland committed Nov 6, 2024
1 parent 852d945 commit 8b22254
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Validate with hassfest

on:
push:
branches:
- master
schedule:
- cron: "28 21 7 * *"

jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: home-assistant/actions/hassfest@master
10 changes: 6 additions & 4 deletions custom_components/yandexgpt_conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@

import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform, CONF_API_KEY
from homeassistant.const import CONF_API_KEY, Platform
from homeassistant.core import (
HomeAssistant,
SupportsResponse,
ServiceCall,
ServiceResponse,
SupportsResponse,
)
from homeassistant.helpers import config_validation as cv, selector
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers import selector
from homeassistant.helpers.typing import ConfigType
from yandex_cloud_ml_sdk import YCloudML

from .const import CONF_FOLDER_ID, DOMAIN
from .yandexart import YandexArt
from .const import DOMAIN, CONF_FOLDER_ID

SERVICE_GENERATE_IMAGE = "generate_image"
PLATFORMS = (Platform.CONVERSATION,)
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)


async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
Expand Down
8 changes: 4 additions & 4 deletions custom_components/yandexgpt_conversation/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"domain": "yandexgpt_conversation",
"name": "YandexGPT",
"version": "1.0.3",
"after_dependencies": ["assist_pipeline", "intent"],
"codeowners": ["@black-roland"],
"config_flow": true,
"dependencies": ["conversation"],
"documentation": "https://github.com/black-roland/homeassistant-yandexgpt/wiki",
"issue_tracker": "https://github.com/black-roland/homeassistant-yandexgpt/issues",
"loggers": ["yandexgpt_conversation"],
"integration_type": "service",
"iot_class": "cloud_polling",
"requirements": ["yandex-cloud-ml-sdk"]
"issue_tracker": "https://github.com/black-roland/homeassistant-yandexgpt/issues",
"loggers": ["yandexgpt_conversation"],
"requirements": ["yandex-cloud-ml-sdk"],
"version": "1.0.3"
}
1 change: 1 addition & 0 deletions custom_components/yandexgpt_conversation/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ generate_image:
selector:
number:
min: 0
max: 2999999999999999
prompt:
required: true
selector:
Expand Down

0 comments on commit 8b22254

Please sign in to comment.