mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Cleanup stale setup from CO2Signal (#62395)
This commit is contained in:
parent
0cc1a7b9bd
commit
ff062bd052
@ -5,7 +5,6 @@ from dataclasses import dataclass
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import cast
|
from typing import cast
|
||||||
|
|
||||||
from homeassistant import config_entries
|
|
||||||
from homeassistant.components.sensor import SensorEntity, SensorStateClass
|
from homeassistant.components.sensor import SensorEntity, SensorStateClass
|
||||||
from homeassistant.const import ATTR_ATTRIBUTION, PERCENTAGE
|
from homeassistant.const import ATTR_ATTRIBUTION, PERCENTAGE
|
||||||
from homeassistant.helpers import update_coordinator
|
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):
|
async def async_setup_entry(hass, entry, async_add_entities):
|
||||||
"""Set up the CO2signal sensor."""
|
"""Set up the CO2signal sensor."""
|
||||||
coordinator: CO2SignalCoordinator = hass.data[DOMAIN][entry.entry_id]
|
coordinator: CO2SignalCoordinator = hass.data[DOMAIN][entry.entry_id]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user