def from_knx(self, payload: DPTArray) -> int: """Convert current payload to value.""" return DPTValue1Count.from_knx(payload.value)
def from_knx(self, payload: DPTArray) -> float: """Convert current payload to value.""" converted_payload = DPTValue1Count.from_knx(payload.value) return converted_payload * self.setpoint_shift_step