diff --git a/custom_components/rct_power/lib/state_helpers.py b/custom_components/rct_power/lib/state_helpers.py index e94f2f3..6175120 100644 --- a/custom_components/rct_power/lib/state_helpers.py +++ b/custom_components/rct_power/lib/state_helpers.py @@ -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)