Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
79b391c6
Commit
79b391c6
authored
5 years ago
by
bouni
Committed by
Pascal Vizeli
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
moved imports to top level (#27640)
parent
d7d7f6a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/co2signal/sensor.py
+4
-4
4 additions, 4 deletions
homeassistant/components/co2signal/sensor.py
with
4 additions
and
4 deletions
homeassistant/components/co2signal/sensor.py
+
4
−
4
View file @
79b391c6
"""
Support for the CO2signal platform.
"""
import
logging
import
CO2Signal
import
voluptuous
as
vol
import
homeassistant.
helpers.config_validation
as
cv
from
homeassistant.
components.sensor
import
PLATFORM_SCHEMA
from
homeassistant.const
import
(
ATTR_ATTRIBUTION
,
CONF_TOKEN
,
CONF_LATITUDE
,
CONF_LONGITUDE
,
CONF_TOKEN
,
)
from
homeassistant.
components.sensor
import
PLATFORM_SCHEMA
import
homeassistant.
helpers.config_validation
as
cv
from
homeassistant.helpers.entity
import
Entity
CONF_COUNTRY_CODE
=
"
country_code
"
...
...
@@ -97,7 +98,6 @@ class CO2Sensor(Entity):
def
update
(
self
):
"""
Get the latest data and updates the states.
"""
import
CO2Signal
_LOGGER
.
debug
(
"
Update data for %s
"
,
self
.
_friendly_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment