Add source address early for KNX services (#94889)

This commit is contained in:
Matthias Alphart 2023-06-20 08:02:13 +02:00 committed by GitHub
parent 5d40edcf02
commit a262cd2b96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -683,6 +683,7 @@ class KNXModule:
payload=GroupValueResponse(payload)
if attr_response
else GroupValueWrite(payload),
source_address=self.xknx.current_address,
)
await self.xknx.telegrams.put(telegram)
@ -692,5 +693,6 @@ class KNXModule:
telegram = Telegram(
destination_address=parse_device_group_address(address),
payload=GroupValueRead(),
source_address=self.xknx.current_address,
)
await self.xknx.telegrams.put(telegram)

View file

@ -34,7 +34,7 @@ async def register_panel(hass: HomeAssistant) -> None:
hass.http.register_static_path(
URL_BASE,
path,
cache_headers=not is_dev_build,
cache_headers=not is_dev_build(),
)
await panel_custom.async_register_panel(
hass=hass,