Skip to content

Commit

Permalink
add min firmware version for current power consumption sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kurz committed Oct 31, 2024
1 parent 2afb44c commit 31bb5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/luxtronik/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _restore_attr_value(self, value: Any | None) -> Any:
if day == name:
vals.append(idx)
break
if len(vals):
if vals:
return vals
return time.min

Expand Down
1 change: 1 addition & 0 deletions custom_components/luxtronik/sensor_entities_predefined.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@
native_unit_of_measurement=UnitOfPower.WATT,
entity_registry_enabled_default=False,
native_precision=0,
min_firmware_version_minor=FirmwareVersionMinor.minor_88,
),
# endregion Main heatpump
# region Heating
Expand Down

0 comments on commit 31bb5ed

Please sign in to comment.