hass-core/tests
Gianluca Barbaro fa65783f39 MQTT: Managing binary payloads (#6976)
* Managing binary payloads

Hello,
background: I wrote a HA camera component that gets the image from a binary payload. I'm testing it with Zanzito (https://play.google.com/store/apps/details?id=it.barbaro.zanzito) and it works apparently well: it gets the image and correctly displays it in the front-end.
But I had to make the changes I'm proposing here: the message was being blocked because the utf-8 decoding failed.
As far as I know, the utf-8 encoding is required for the topic, not for the payload. What I did here was try the utf-8 decoding, but even if unsuccessful, it dispatches the message anyway.
Is there anything else I'm missing?
thanks
Gianluca

* Update __init__.py

* Update __init__.py

* Update __init__.py

* git test - ignore

* Should work

* minor fixes

* updated mqtt/services.yaml

* added two tests, modified threaded subscribe

* removing polymer

* requested changes

* requested changes - minor fix

* security wrap around payload_file_path

* services.yaml updated

* removed file publishing

* minor fix
2017-04-13 07:38:09 -07:00
..
components MQTT: Managing binary payloads (#6976) 2017-04-13 07:38:09 -07:00
fixtures Introduced Ring binary sensors and refactored Ring component (#6520) 2017-03-31 08:53:56 -07:00
helpers Make core to look avilable state of device on servicecall (#7045) 2017-04-11 08:59:46 -07:00
mock Tests for zwave services (#6937) 2017-04-07 09:17:23 -04:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts Be able to select mqtt:tls_version for Python < 3.6 (#6442) 2017-03-12 22:02:59 -07:00
test_util Initial import for HassIO (#6935) 2017-04-06 22:19:08 -07:00
testing_config/custom_components Move part of image_processing tests (#5634) 2017-01-29 14:40:37 -08:00
util Fix/slugify with german umlaut ss (#7029) 2017-04-11 19:51:07 -07:00
__init__.py async HTTP component (#3914) 2016-10-23 23:48:01 -07:00
common.py MQTT: Managing binary payloads (#6976) 2017-04-13 07:38:09 -07:00
conftest.py Tests for zwave services (#6937) 2017-04-07 09:17:23 -04:00
test_bootstrap.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_config.py Preserve customize glob order. (#6963) 2017-04-06 22:39:35 -07:00
test_core.py Bugfix wait on start event (#7013) 2017-04-11 09:09:31 -07:00
test_loader.py Bootstrap / Component setup async (#6264) 2017-02-28 20:33:19 -08:00
test_main.py Migrate core from threads to async awesomeness (#3248) 2016-09-12 19:16:14 -07:00
test_remote.py Remove deprecated remote classes (#7011) 2017-04-10 09:04:19 -07:00
test_setup.py Add warning for slow platforms/components (#6467) 2017-03-07 20:31:57 -08:00