Skip to content

Commit aa6ee5c

Browse files
committed
Fix tariff structure presence
1 parent f07d3a0 commit aa6ee5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/plugwise-beta/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
163163
if "off" in sensor:
164164
if api._power_tariff is None:
165165
continue
166-
if (
166+
elif (
167167
api._power_tariff[
168168
"electricity_consumption_tariff_structure"
169169
]

0 commit comments

Comments
 (0)