Skip to content

Commit 796d542

Browse files
authored
Fix broken config schema (#56)
1 parent 7b60791 commit 796d542

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

custom_components/teslafi/__init__.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
import voluptuous as vol
6-
75
from homeassistant.config_entries import ConfigEntry
86
from homeassistant.const import CONF_API_KEY, Platform
97
from homeassistant.core import HomeAssistant
@@ -32,15 +30,7 @@
3230
Platform.UPDATE,
3331
]
3432

35-
CONFIG_SCHEMA = vol.Schema(
36-
{
37-
DOMAIN: vol.Schema(
38-
{
39-
vol.Required(CONF_API_KEY): cv.string,
40-
}
41-
)
42-
}
43-
)
33+
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
4434

4535

4636
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:

custom_components/teslafi/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
],
1515
"requirements": [],
1616
"ssdp": [],
17-
"version": "2.9",
17+
"version": "2.9.1",
1818
"zeroconf": []
1919
}

0 commit comments

Comments
 (0)