We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30892de commit 3717d24Copy full SHA for 3717d24
1 file changed
custom_components/powercalc/strategy/fixed.py
@@ -53,7 +53,7 @@ async def calculate(self, entity_state: State) -> Decimal | None:
53
# Lookup by state attribute (attribute|value)
54
for state_key, power in self._per_state_power.items():
55
if "|" in state_key:
56
- attribute, value = state_key.split("|", 2)
+ attribute, value = state_key.split("|", 1)
57
if str(entity_state.attributes.get(attribute)) == value:
58
return evaluate_to_decimal(power)
59
0 commit comments