Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Code optimizition
Browse files Browse the repository at this point in the history
  • Loading branch information
georgezhao2010 authored Jul 11, 2021
1 parent d0183d3 commit dc0d72b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions custom_components/climate_ewelink/ac_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from homeassistant.helpers.entity import Entity
from homeassistant.const import (
TEMP_CELSIUS,
STATE_ON,
STATE_OFF,
DEVICE_CLASS_TEMPERATURE
)

Expand Down
6 changes: 1 addition & 5 deletions custom_components/climate_ewelink/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
from homeassistant.components.climate import *
from homeassistant.components.climate.const import *
from homeassistant.const import (
PRECISION_HALVES,
TEMP_CELSIUS,
PRECISION_WHOLE,
PRECISION_TENTHS,
ATTR_TEMPERATURE,
STATE_ON,
STATE_OFF
ATTR_TEMPERATURE
)
from .const import (
DOMAIN,
TEMPERATURE_MIN,
TEMPERATURE_MAX,
STATES_MANAGER,
Expand Down
2 changes: 0 additions & 2 deletions custom_components/climate_ewelink/ewelinkcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import logging
import requests

from aiohttp import ClientSession

_LOGGER = logging.getLogger(__name__)


Expand Down

0 comments on commit dc0d72b

Please sign in to comment.