Skip to content

Commit

Permalink
use keyword arguments for Telegram()
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Nov 29, 2020
1 parent e59402d commit 05f8764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xknx/core/value_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ async def read(self):

async def send_group_read(self):
"""Send group read."""
telegram = Telegram(self.group_address, TelegramType.GROUP_READ)
telegram = Telegram(
destination_address=self.group_address, telegramtype=TelegramType.GROUP_READ
)
await self.xknx.telegrams.put(telegram)

async def telegram_received(self, telegram):
Expand Down

0 comments on commit 05f8764

Please sign in to comment.