More Mobile app sensor fixes (#22914)
* Ensure we only add a sensor once * Ensure that we dont process updates for entities that arent what we were setup for * Add debug logging to ease development of apps * Use str representation
This commit is contained in:
1 parent
64ea13104e
commit
fd8d9747ef
4 files changed
+40
-5
No files matched your search
@@ -99,6 +99,9 @@ async def handle_webhook(hass: HomeAssistantType, webhook_id: str,
|
||||
|
||||
data = webhook_payload
|
||||
|
||||
_LOGGER.debug("Received webhook payload for type %s: %s", webhook_type,
|
||||
data)
|
||||
|
||||
if webhook_type in WEBHOOK_SCHEMAS:
|
||||
try:
|
||||
data = WEBHOOK_SCHEMAS[webhook_type](webhook_payload)
|
||||
|
||||
Reference in new issue
Block a user