Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jnimmo committed Mar 8, 2024
1 parent 06e6c83 commit 7de965f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ This has only been tested with a device emulator to the specifications, please r
To use in your installation:

1. Download the intesisbox directory into your custom_components directory
2. Add the new "IntesisBox" integration in Home Assistant. Set as host the IntesisBox IP
2. Add the new "IntesisBox" integration in Home Assistant. Set as host the IntesisBox IP
14 changes: 5 additions & 9 deletions custom_components/intesisbox/climate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""
Support for IntesisBox Smart AC Controllers.
"""Support for IntesisBox Smart AC Controllers.
For more details about this platform, please refer to the documentation at
https://github.com/jnimmo/hass-intesisbox
Expand All @@ -14,12 +13,10 @@
from homeassistant.components.climate import (
PLATFORM_SCHEMA,
ClimateEntity,
HVACMode,
ClimateEntityFeature,
HVACMode,
)
from homeassistant.components.climate.const import (
ATTR_HVAC_MODE,
)
from homeassistant.components.climate.const import ATTR_HVAC_MODE
from homeassistant.const import (
ATTR_TEMPERATURE,
CONF_HOST,
Expand All @@ -28,7 +25,6 @@
STATE_UNKNOWN,
UnitOfTemperature,
)
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import PlatformNotReady
import homeassistant.helpers.config_validation as cv

Expand Down Expand Up @@ -88,9 +84,8 @@

async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Create the Intesisbox climate devices."""
from . import intesisbox

controller = intesisbox.IntesisBox(config[CONF_HOST], loop=hass.loop)
controller = IntesisBox(config[CONF_HOST], loop=hass.loop)
controller.connect()
while not controller.is_connected:
await asyncio.sleep(0.1)
Expand All @@ -101,6 +96,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=


async def async_setup_entry(hass, entry, async_add_entities):
"""Add entries from config."""
controller = hass.data[DOMAIN][entry.entry_id]
async_add_entities([IntesisBoxAC(controller)], True)

Expand Down

0 comments on commit 7de965f

Please sign in to comment.