From 47db8cad274afd80e46d469617a51892acd6193a Mon Sep 17 00:00:00 2001 From: Nigel Dokter Date: Sun, 12 Feb 2023 11:28:02 +0100 Subject: [PATCH] issue-51-telegram fix Telegram.get_mbus_device_by_channel --- dsmr_parser/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmr_parser/objects.py b/dsmr_parser/objects.py index 160ed0a..1ae26bc 100644 --- a/dsmr_parser/objects.py +++ b/dsmr_parser/objects.py @@ -46,7 +46,7 @@ class Telegram(object): """ return [d[1] for d in sorted(self._mbus_devices.items(), key=lambda x: x[0])] - def get_mbus_device_by_channel(self, channel_id=None): + def get_mbus_device_by_channel(self, channel_id): return self._mbus_devices[channel_id] def __getattr__(self, name):