mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
moved imports to top level (#27640)
This commit is contained in:
parent
d7d7f6a1c9
commit
79b391c673
@ -1,16 +1,17 @@
|
|||||||
"""Support for the CO2signal platform."""
|
"""Support for the CO2signal platform."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import CO2Signal
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ATTRIBUTION,
|
ATTR_ATTRIBUTION,
|
||||||
CONF_TOKEN,
|
|
||||||
CONF_LATITUDE,
|
CONF_LATITUDE,
|
||||||
CONF_LONGITUDE,
|
CONF_LONGITUDE,
|
||||||
|
CONF_TOKEN,
|
||||||
)
|
)
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
CONF_COUNTRY_CODE = "country_code"
|
CONF_COUNTRY_CODE = "country_code"
|
||||||
@ -97,7 +98,6 @@ class CO2Sensor(Entity):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest data and updates the states."""
|
"""Get the latest data and updates the states."""
|
||||||
import CO2Signal
|
|
||||||
|
|
||||||
_LOGGER.debug("Update data for %s", self._friendly_name)
|
_LOGGER.debug("Update data for %s", self._friendly_name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user