What did I forget?
Integration error: hanotifier - Integration ‘hanotifier’ not found
manifest.json
{
"domain": "hanotifier",
"name": "hanotifier",
"codeowners": [],
"dependencies": [],
"documentation": "",
"iot_class": "local_polling",
"requirements": [],
"version": "0.1.0"
}
configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
hanotifier:
script
from __future__ import annotations
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
# The domain of your component. Should be equal to the name of your component.
DOMAIN = "hanotifier"
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up a skeleton component."""
# States are in the format DOMAIN.OBJECT_ID.
hass.states.set('hanotifier.hanotifier', 'Works!')
# Return boolean to indicate that initialization was successfully.
return True