Fix data used for logbook (#17172)

* Fix data used for logbook

* Lint
This commit is contained in:
Paulus Schoutsen 2018-10-05 23:07:27 +02:00 committed by GitHub
parent bed1b96f5a
commit a66db59359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View file

@ -565,20 +565,20 @@ async def test_humanify_alexa_event(hass):
})
results = list(logbook.humanify(hass, [
ha.Event(EVENT_ALEXA_SMART_HOME, {
ha.Event(EVENT_ALEXA_SMART_HOME, {'request': {
'namespace': 'Alexa.Discovery',
'name': 'Discover',
}),
ha.Event(EVENT_ALEXA_SMART_HOME, {
}}),
ha.Event(EVENT_ALEXA_SMART_HOME, {'request': {
'namespace': 'Alexa.PowerController',
'name': 'TurnOn',
'entity_id': 'light.kitchen'
}),
ha.Event(EVENT_ALEXA_SMART_HOME, {
}}),
ha.Event(EVENT_ALEXA_SMART_HOME, {'request': {
'namespace': 'Alexa.PowerController',
'name': 'TurnOn',
'entity_id': 'light.non_existing'
}),
}}),
]))