Skip to content

Commit

Permalink
Use iSort + black
Browse files Browse the repository at this point in the history
  • Loading branch information
egguy committed Jan 11, 2022
1 parent e640f1f commit 62538f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 4 additions & 1 deletion custom_components/tahoma/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
from .climate_devices.hitachi_air_to_water_heating_zone import (
HitachiAirToWaterHeatingZone,
)
from .climate_devices.somfy_heating_temperature_interface import SomfyHeatingTemperatureInterface
from .climate_devices.somfy_heating_temperature_interface import (
SomfyHeatingTemperatureInterface,
)
from .climate_devices.somfy_thermostat import SomfyThermostat
from .climate_devices.stateless_exterior_heating import StatelessExteriorHeating
from .const import DOMAIN
Expand All @@ -46,6 +48,7 @@
UIWidget.STATELESS_EXTERIOR_HEATING: StatelessExteriorHeating,
}


async def async_setup_entry(
hass: HomeAssistant,
entry: ConfigEntry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
HVAC_MODE_AUTO,
HVAC_MODE_HEAT_COOL,
HVAC_MODE_OFF,
PRESET_AWAY,
PRESET_COMFORT,
PRESET_ECO,
PRESET_AWAY,
PRESET_NONE,
)
from homeassistant.const import (
Expand Down Expand Up @@ -81,10 +81,7 @@ async def async_added_to_hass(self):
await super().async_added_to_hass()

# Only the AtlanticElectricarHeater WithAdjustableTemperatureSetpoint has a separate temperature sensor
if (
self.device.widget
!= "SomfyHeatingTemperatureInterface"
):
if self.device.widget != "SomfyHeatingTemperatureInterface":
_LOGGER.error("No somfy heating widget !")
return

Expand Down

0 comments on commit 62538f1

Please sign in to comment.