Skip to content

Commit f07d3a0

Browse files
committed
Check tariff structure presence
1 parent 9628baf commit f07d3a0

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
@@ -161,7 +161,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
161161
if data[sensor] is not None:
162162
if "power" in device["types"]:
163163
if "off" in sensor:
164-
api._power_tariff is None:
164+
if api._power_tariff is None:
165165
continue
166166
if (
167167
api._power_tariff[

0 commit comments

Comments
 (0)