From 6c101192b91e147800beed6621accd1e9e2a62ce Mon Sep 17 00:00:00 2001 From: Joe Hansche Date: Sun, 5 Jan 2025 13:04:45 -0500 Subject: [PATCH] Fix broken config schema --- custom_components/teslafi/__init__.py | 12 +----------- custom_components/teslafi/manifest.json | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/custom_components/teslafi/__init__.py b/custom_components/teslafi/__init__.py index 03d4655..363b873 100644 --- a/custom_components/teslafi/__init__.py +++ b/custom_components/teslafi/__init__.py @@ -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 @@ -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: diff --git a/custom_components/teslafi/manifest.json b/custom_components/teslafi/manifest.json index e7c3900..b20286e 100644 --- a/custom_components/teslafi/manifest.json +++ b/custom_components/teslafi/manifest.json @@ -14,6 +14,6 @@ ], "requirements": [], "ssdp": [], - "version": "2.9", + "version": "2.9.1", "zeroconf": [] }