hassfest: fix manifest key order, drop markdown from i18n, add CONFIG_SCHEMA
- manifest.json: keys reordered to domain, name, then alphabetical - strings.json + translations/en.json: rephrase user-step description without backticks/angle-brackets (hassfest rejects HTML in i18n strings) - __init__.py: add CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) since async_setup exists but the integration is config-entry-only
This commit is contained in:
parent
d4c4e530f6
commit
56d288db37
@ -13,6 +13,7 @@ from typing import TYPE_CHECKING
|
|||||||
|
|
||||||
from homeassistant.const import CONF_HOST, CONF_PORT, Platform
|
from homeassistant.const import CONF_HOST, CONF_PORT, Platform
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
|
from homeassistant.helpers import config_validation as cv
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
CONF_CONTROLLER_KEY,
|
CONF_CONTROLLER_KEY,
|
||||||
@ -41,6 +42,8 @@ PLATFORMS: list[Platform] = [
|
|||||||
Platform.SWITCH,
|
Platform.SWITCH,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
||||||
"""No YAML support; everything is config-flow driven."""
|
"""No YAML support; everything is config-flow driven."""
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"domain": "omni_pca",
|
"domain": "omni_pca",
|
||||||
"name": "HAI/Leviton Omni Panel",
|
"name": "HAI/Leviton Omni Panel",
|
||||||
"version": "2026.5.11",
|
"codeowners": ["@rsp2k"],
|
||||||
"iot_class": "local_push",
|
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": ["@rsp2k"],
|
|
||||||
"requirements": ["omni-pca==2026.5.11"],
|
|
||||||
"documentation": "https://github.com/rsp2k/omni-pca",
|
"documentation": "https://github.com/rsp2k/omni-pca",
|
||||||
|
"integration_type": "hub",
|
||||||
|
"iot_class": "local_push",
|
||||||
"issue_tracker": "https://github.com/rsp2k/omni-pca/issues",
|
"issue_tracker": "https://github.com/rsp2k/omni-pca/issues",
|
||||||
"integration_type": "hub"
|
"requirements": ["omni-pca==2026.5.11"],
|
||||||
|
"version": "2026.5.11"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"step": {
|
"step": {
|
||||||
"user": {
|
"user": {
|
||||||
"title": "Connect to your Omni panel",
|
"title": "Connect to your Omni panel",
|
||||||
"description": "Enter the IP/hostname of your HAI/Leviton Omni Pro II controller and the 32-character hex Controller Key. Use `omni-pca decode-pca <file>.pca --field controller_key` to extract the key from a PC Access export. Optionally provide a path to a saved `.pca` file to load panel programs from disk instead of streaming them from the controller.",
|
"description": "Enter the IP/hostname of your HAI/Leviton Omni Pro II controller and the 32-character hex Controller Key. Run omni-pca decode-pca with the --field controller_key option on a PC Access export file to extract the key. Optionally provide a path to a saved .pca file to load panel programs from disk instead of streaming them from the controller.",
|
||||||
"data": {
|
"data": {
|
||||||
"host": "Host",
|
"host": "Host",
|
||||||
"port": "Port",
|
"port": "Port",
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"step": {
|
"step": {
|
||||||
"user": {
|
"user": {
|
||||||
"title": "Connect to your Omni panel",
|
"title": "Connect to your Omni panel",
|
||||||
"description": "Enter the IP/hostname of your HAI/Leviton Omni Pro II controller and the 32-character hex Controller Key. Use `omni-pca decode-pca <file>.pca --field controller_key` to extract the key from a PC Access export. Optionally provide a path to a saved `.pca` file to load panel programs from disk instead of streaming them from the controller.",
|
"description": "Enter the IP/hostname of your HAI/Leviton Omni Pro II controller and the 32-character hex Controller Key. Run omni-pca decode-pca with the --field controller_key option on a PC Access export file to extract the key. Optionally provide a path to a saved .pca file to load panel programs from disk instead of streaming them from the controller.",
|
||||||
"data": {
|
"data": {
|
||||||
"host": "Host",
|
"host": "Host",
|
||||||
"port": "Port",
|
"port": "Port",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user