Skip to content

Commit

Permalink
Remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Jan 19, 2024
1 parent 6c58d19 commit bf484c4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom_components/rct_power/lib/state_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,8 @@ def get_first_api_response_value_as_battery_status(
#
# Bitfield
#


def get_api_response_values_as_bitfield(
entity: SensorEntity,
values: list[Optional[ApiResponseValue]],
) -> StateType:
return "".join(f"{value:b}" for value in values if isinstance(value, int))
# if all(isinstance(bitmask, int) for bitmask in values):
# return "{0:b}{1:b}{2:b}{3:b}".format(*values)

0 comments on commit bf484c4

Please sign in to comment.