fixes
This commit is contained in:
parent
4dbfcd82fc
commit
b27447e104
@ -1,14 +1,11 @@
|
|||||||
"""The SNCF integration."""
|
"""The SNCF integration."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
# TODO List the platforms that you want to support.
|
|
||||||
# For your initial PR, limit it to 1 platform.
|
# 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:
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
|
@ -8,7 +8,7 @@ from homeassistant import config_entries
|
|||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.data_entry_flow import FlowResult
|
from homeassistant.data_entry_flow import FlowResult
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
from sncf import SNCF
|
from .sncf import SNCF
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user