Skip to content

Commit

Permalink
add CONFIG_SCHEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
wtadler committed Oct 27, 2024
1 parent c05d3ed commit 0168db7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/leafspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@
from homeassistant.components.http.view import HomeAssistantView
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.core import callback, HomeAssistant
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_connect, async_dispatcher_send



from .config_flow import CONF_SECRET, DOMAIN, URL_LEAFSPY_PATH
from .device_tracker import async_handle_message

_LOGGER = logging.getLogger(__name__)

PLATFORMS = ["device_tracker"]

# Use empty_config_schema because the component does not have any config options
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)

async def async_setup(hass, config):
"""Initialize Leaf Spy component."""
Expand Down

0 comments on commit 0168db7

Please sign in to comment.