-
-
Notifications
You must be signed in to change notification settings - Fork 32k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recorder - Event not JSON serializable #18900
Comments
Exactly the same problem here. (on 84.b0) |
Same for telegramnotify
and telegram_bot send_message
|
Looks like every notify component is affected. |
Also seeing this on 84.0b0 and 84.0b1 Both of these are repeated for persistent notification and service "create"
|
getting the same kind of errors 2018-12-08 21:56:44 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140627748735072] Unable to serialize to JSON: Object of type 'XiaomiGateway' is not JSON serializable {'id': 2, 'type': 'event', 'event': {'event_type': 'call_service', 'data': {'domain': 'xiaomi_aqara', 'service': 'stop_ringtone', 'service_data': {'gw_mac': <xiaomi_gateway.XiaomiGateway object at 0x7fe725796898>}}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 12, 8, 21, 56, 44, 365576, tzinfo=), 'context': {'id': '27122b8840024516a0d37ad2795825e7', 'user_id': None}}} |
Home Assistant release with the issue: 0.84.0.dev0 (2018-12-01)
Last working Home Assistant release (if known): -
Component/platform: recorder, logbook, persistent_notification, (other?)
Description of problem:
During the execution of
persistent_notification.create
andlogbook.log
withtemplates
asmessage
a recorder warning appears (see below).Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The template is first rendered during the
service
call execution. Since we already log the call itself, the error occurs. Might be related to #18720The text was updated successfully, but these errors were encountered: