def to_knx(self, value: int) -> DPTArray:
     """Convert value to payload."""
     return DPTArray(DPTSceneNumber.to_knx(value))
Beispiel #2
0
 def from_knx(self, payload):
     """Convert current payload to value."""
     return DPTSceneNumber.from_knx(payload.value)