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