issue-51-telegram fix Telegram.get_mbus_device_by_channel
This commit is contained in:
parent
32854897d8
commit
47db8cad27
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user