Skip to content

Commit

Permalink
Fix broken config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jhansche committed Jan 5, 2025
1 parent 7b60791 commit 6c10119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions custom_components/teslafi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from __future__ import annotations

import voluptuous as vol

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_API_KEY, Platform
from homeassistant.core import HomeAssistant
Expand Down Expand Up @@ -32,15 +30,7 @@
Platform.UPDATE,
]

CONFIG_SCHEMA = vol.Schema(
{
DOMAIN: vol.Schema(
{
vol.Required(CONF_API_KEY): cv.string,
}
)
}
)
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)


async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/teslafi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
],
"requirements": [],
"ssdp": [],
"version": "2.9",
"version": "2.9.1",
"zeroconf": []
}

0 comments on commit 6c10119

Please sign in to comment.