Skip to content

Commit

Permalink
Define CONFIG_SCHEMA
Browse files Browse the repository at this point in the history
this fixes a hassfest validation warning
  • Loading branch information
flabbamann committed Oct 18, 2023
1 parent 86ba264 commit ab74aeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions custom_components/aha_region/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"""aha custom component."""

from homeassistant import core
import homeassistant.helpers.config_validation as cv

from .const import DOMAIN

CONFIG_SCHEMA = cv.platform_only_config_schema(DOMAIN)


async def async_setup(hass: core.HomeAssistant, config: dict) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r requirements.txt

black==23.9.1
homeassistant
homeassistant>=2023.7.0
mypy==1.6.0
pre-commit==3.5.0
pytest==7.4.2
Expand Down

0 comments on commit ab74aeb

Please sign in to comment.