issue-51-telegram fix Telegram.get_mbus_device_by_channel

This commit is contained in:
Nigel Dokter 2023-02-12 11:28:02 +01:00
parent 32854897d8
commit 47db8cad27

View File

@ -46,7 +46,7 @@ class Telegram(object):
""" """
return [d[1] for d in sorted(self._mbus_devices.items(), key=lambda x: x[0])] 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] return self._mbus_devices[channel_id]
def __getattr__(self, name): def __getattr__(self, name):