init home-assistant
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""Provide a mock package component."""
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .const import TEST # noqa: F401
|
||||
|
||||
DOMAIN = "test_package"
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Mock a successful setup."""
|
||||
return True
|
||||
@@ -0,0 +1,3 @@
|
||||
"""Constants for test_package custom component."""
|
||||
|
||||
TEST = 5
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"entity": {
|
||||
"switch": {
|
||||
"something": {
|
||||
"state": {
|
||||
"away": "mdi:home-outline",
|
||||
"home": "mdi:home"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"enable_god_mode": "mdi:shield"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"domain": "test_package",
|
||||
"name": "Test Package",
|
||||
"documentation": "http://test-package.io",
|
||||
"requirements": [],
|
||||
"dependencies": [],
|
||||
"codeowners": [],
|
||||
"version": "1.2.3"
|
||||
}
|
||||
Reference in New Issue
Block a user