init home-assistant

This commit is contained in:
2026-11-19 15:15:32 -05:00
parent 2e81d9d300
commit feec6ef9fb
19230 changed files with 3335526 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
"""Component with embedded platforms."""
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
DOMAIN = "test_embedded"
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Mock config."""
return True

View File

@@ -0,0 +1,12 @@
{
"entity": {
"switch": {
"something": {
"state": {
"away": "mdi:home-outline",
"home": "mdi:home"
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
{
"domain": "test_embedded",
"name": "Test Embedded",
"documentation": "http://test-package.io",
"requirements": [],
"dependencies": [],
"codeowners": [],
"version": "1.2.3"
}

View File

@@ -0,0 +1,14 @@
"""Switch platform for the embedded component."""
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
async def async_setup_platform(
hass: HomeAssistant,
config: ConfigType,
async_add_entities_callback: AddEntitiesCallback,
discovery_info: DiscoveryInfoType | None = None,
) -> None:
"""Find and return test switches."""