Skip to content

Commit

Permalink
Updated v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ITSpecialist111 committed Oct 19, 2024
1 parent 6edcfbc commit 63bcb0b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Validate

on:
push:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
validate-hacs:
runs-on: "ubuntu-latest"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: HACS validation
uses: "hacs/action@main"
uses: hacs/action@main
with:
category: "integration"
category: "integration"
4 changes: 3 additions & 1 deletion ai_suggester/custom_components/ai_suggester/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""The AI Automation Suggester integration."""

import logging

import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant

Expand All @@ -10,6 +11,7 @@

_LOGGER = logging.getLogger(__name__)

CONFIG_SCHEMA = cv.config_entry_only_config_schema

async def async_setup(hass: HomeAssistant, config: dict):
"""Set up the AI Automation Suggester component."""
Expand Down
9 changes: 5 additions & 4 deletions ai_suggester/custom_components/ai_suggester/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"domain": "ai_suggester",
"name": "AI Automation Suggester",
"version": "1.0.0",
"documentation": "https://github.com/ITSpecialist111/ai_automation_suggester",
"requirements": ["openai>=1.0.0,<2.0.0"],
"config_flow": true,
"codeowners": ["@ITSpecialist111"],
"dependencies": [],
"codeowners": ["@yITSpecialist111"],
"documentation": "https://github.com/ITSpecialist111/ai_automation_suggester",
"iot_class": "cloud_polling",
"config_flow": true
"requirements": ["openai>=1.0.0,<2.0.0"]
}

1 change: 1 addition & 0 deletions ai_suggester/custom_components/ai_suggester/services.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
generate_suggestions:
name: Generate Suggestions
description: "Manually trigger AI automation suggestions."
fields: {}
7 changes: 6 additions & 1 deletion ai_suggester/custom_components/ai_suggester/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"title": "Configure AI Automation Suggester",
"data": {
"scan_frequency": "Scan Frequency (hours)",
"use_local_ai": "Use Local AI (Work In Progress)",
"openai_api_key": "OpenAI API Key"
}
}
},
"error": {
"required": "This field is required."
}
},
"services": {
"generate_suggestions": {
"name": "Generate Suggestions",
"description": "Manually trigger AI automation suggestions."
}
}
}

0 comments on commit 63bcb0b

Please sign in to comment.