If registration supports encryption then return encrypted payloads (#21853)

This commit is contained in:
Robbie Trencheny authored and Charles Garwood committed 2019-03-11 08:34:58 -04:00
1 parent c401f35a43
commit 785fd273e3
7 files changed
+91 -24

No files matched your search

+12
View File
@@ -32,6 +32,18 @@ REGISTER = {
'supports_encryption': True
}
REGISTER_CLEARTEXT = {
'app_data': {'foo': 'bar'},
'app_id': 'io.homeassistant.mobile_app_test',
'app_name': 'Mobile App Tests',
'app_version': '1.0.0',
'device_name': 'Test 1',
'manufacturer': 'mobile_app',
'model': 'Test',
'os_version': '1.0',
'supports_encryption': False
}
RENDER_TEMPLATE = {
'type': 'render_template',
'data': {