Cleanup stale setup from CO2Signal (#62395)

This commit is contained in:
Franck Nijhof 2021-12-20 16:07:13 +01:00 committed by GitHub
parent 0cc1a7b9bd
commit ff062bd052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@ from dataclasses import dataclass
from datetime import timedelta
from typing import cast
from homeassistant import config_entries
from homeassistant.components.sensor import SensorEntity, SensorStateClass
from homeassistant.const import ATTR_ATTRIBUTION, PERCENTAGE
from homeassistant.helpers import update_coordinator
@ -45,15 +44,6 @@ SENSORS = (
)
async def async_setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the CO2signal sensor."""
await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": config_entries.SOURCE_IMPORT},
data=config,
)
async def async_setup_entry(hass, entry, async_add_entities):
"""Set up the CO2signal sensor."""
coordinator: CO2SignalCoordinator = hass.data[DOMAIN][entry.entry_id]