Files
home-assistant-core/homeassistant/components
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
..
2017-04-03 23:02:15 -07:00
2017-03-30 00:50:53 -07:00
2017-04-11 13:52:47 +02:00
2017-04-11 22:52:44 +02:00
2017-02-12 11:31:46 -08:00
…
2017-02-11 11:29:37 -08:00
2017-03-26 15:50:40 +02:00
…
2017-02-23 13:02:56 -08:00
2017-04-06 22:19:08 -07:00
2017-03-01 07:38:49 -08:00
2017-02-26 14:38:06 -08:00
2017-03-25 09:48:05 +01:00
…
2017-04-11 09:23:41 -07:00
2017-03-10 11:14:31 +01:00
2017-03-04 15:10:36 -08:00
…
2017-02-26 14:38:06 -08:00
2017-03-01 07:38:49 -08:00
2017-03-30 00:50:53 -07:00
…
2017-02-02 10:23:13 +01:00
2017-04-11 19:17:09 -07:00
…
2017-03-04 15:10:36 -08:00
2017-03-04 15:10:36 -08:00
2017-03-30 00:50:53 -07:00
2017-03-04 15:10:36 -08:00
2017-02-23 21:44:47 -08:00
…
…
2017-04-06 22:59:41 -07:00
2017-04-02 12:47:15 -04:00
2017-03-26 15:50:40 +02:00
2017-04-04 10:44:08 +02:00
…
2017-03-04 15:10:36 -08:00
2017-04-11 20:10:02 -07:00
2017-03-26 15:53:42 +02:00
…