From b27447e1043ab2da12da4c869b9f77f0489865df Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Mon, 3 Jan 2022 21:14:02 +0100 Subject: [PATCH] fixes --- __init__.py | 5 +---- config_flow.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/__init__.py b/__init__.py index 67905af..072a526 100644 --- a/__init__.py +++ b/__init__.py @@ -1,14 +1,11 @@ """The SNCF integration.""" from __future__ import annotations - from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant - from .const import DOMAIN -# TODO List the platforms that you want to support. # For your initial PR, limit it to 1 platform. -PLATFORMS: list[str] = ["light"] +PLATFORMS: list[str] = ["sensor"] async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: diff --git a/config_flow.py b/config_flow.py index 45fd302..0126722 100644 --- a/config_flow.py +++ b/config_flow.py @@ -8,7 +8,7 @@ from homeassistant import config_entries from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResult from homeassistant.exceptions import HomeAssistantError -from sncf import SNCF +from .sncf import SNCF from .const import DOMAIN _LOGGER = logging.getLogger(__name__)