Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Nov 21, 2024
1 parent 5af3a7a commit a65d072
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions custom_components/cz_energy_spot_prices/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,28 @@ async def async_setup_entry(hass: HomeAssistant, entry: SpotRateConfigEntry, asy
)

if coordinator._electricity_buy_rate_template is not None:
for i in CONSECUTIVE_HOURS:
sensors.append(
ConsecutiveCheapestElectricitySensor(
hours=i,
hass=hass,
settings=settings,
coordinator=coordinator,
trade = Trade.BUY,
)
)
for i in CONSECUTIVE_HOURS:
sensors.append(
ConsecutiveCheapestElectricitySensor(
hours=i,
hass=hass,
settings=settings,
coordinator=coordinator,
trade = Trade.BUY,
)
)

if coordinator._electricity_sell_rate_template is not None:
for i in CONSECUTIVE_HOURS:
sensors.append(
ConsecutiveCheapestElectricitySensor(
hours=i,
hass=hass,
settings=settings,
coordinator=coordinator,
trade = Trade.SELL,
)
)
for i in CONSECUTIVE_HOURS:
sensors.append(
ConsecutiveCheapestElectricitySensor(
hours=i,
hass=hass,
settings=settings,
coordinator=coordinator,
trade = Trade.SELL,
)
)

async_add_entities(sensors)

Expand Down

0 comments on commit a65d072

Please sign in to comment.