From d4625b0a891330ca44c24f1fa46d9b3c82e06443 Mon Sep 17 00:00:00 2001 From: Juan Cespedes Date: Wed, 29 May 2024 19:49:27 +0200 Subject: [PATCH] Re-added 20.105 (HVACContrMode): it went missing in rewrite of types registry (#89) --- knx/dpt/types_20_test.go | 5 +++-- knx/dpt/types_registry.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/knx/dpt/types_20_test.go b/knx/dpt/types_20_test.go index 5d2de69..e73efc6 100644 --- a/knx/dpt/types_20_test.go +++ b/knx/dpt/types_20_test.go @@ -23,9 +23,10 @@ func TestDPT_20105(t *testing.T) { knxValue := []byte{0, 9} dptValue := DPT_20105(9) - var tmpDPT DPT_20105 + tmpDPT, ok := Produce("20.105") + assert.True(t, ok) assert.NoError(t, tmpDPT.Unpack(knxValue)) - assert.Equal(t, dptValue, tmpDPT) + assert.Equal(t, &dptValue, tmpDPT) assert.Equal(t, knxValue, dptValue.Pack()) diff --git a/knx/dpt/types_registry.go b/knx/dpt/types_registry.go index f714802..4ffb97d 100644 --- a/knx/dpt/types_registry.go +++ b/knx/dpt/types_registry.go @@ -196,6 +196,7 @@ var dptTypes = map[string]Datapoint{ // 20.xxx "20.102": new(DPT_20102), + "20.105": new(DPT_20105), // 28.xxx "28.001": new(DPT_28001),