mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
fix telegram in knx_event and knx.send service
This commit is contained in:
@@ -326,8 +326,8 @@ class KNXModule:
|
||||
data = None
|
||||
|
||||
# Not all telegrams have serializable data.
|
||||
if isinstance(telegram, (GroupValueWrite, GroupValueResponse)):
|
||||
data = telegram.dpt.value
|
||||
if isinstance(telegram.payload, (GroupValueWrite, GroupValueResponse)):
|
||||
data = telegram.payload.value.value
|
||||
|
||||
self.hass.bus.async_fire(
|
||||
"knx_event",
|
||||
@@ -359,7 +359,7 @@ class KNXModule:
|
||||
|
||||
telegram = Telegram(
|
||||
destination_address=GroupAddress(attr_address),
|
||||
payload=calculate_payload(attr_payload),
|
||||
payload=GroupValueWrite(calculate_payload(attr_payload)),
|
||||
)
|
||||
await self.xknx.telegrams.put(telegram)
|
||||
|
||||
|
Reference in New Issue
Block a user