• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

home-assistant / home-assistant / 22874
94%

Build:
DEFAULT BRANCH: dev
Ran 13 Apr 2017 02:39PM UTC
Jobs 6
Files 246
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
22874

push

travis-ci

balloob
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

20805 of 22208 relevant lines covered (93.68%)

3.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22874.1 (TOXENV=py34) 13 Apr 2017 02:46PM UTC 0
93.67
Travis Job 22874.1
2 22874.2 (TOXENV=requirements) 13 Apr 2017 02:39PM UTC 0
Travis Job 22874.2
3 22874.3 (TOXENV=lint) 13 Apr 2017 02:49PM UTC 0
Travis Job 22874.3
4 22874.4 (TOXENV=py35) 13 Apr 2017 02:46PM UTC 0
93.66
Travis Job 22874.4
5 22874.5 (TOXENV=py36) 13 Apr 2017 02:46PM UTC 0
93.66
Travis Job 22874.5
6 22874.6 (TOXENV=py36) 13 Apr 2017 02:48PM UTC 0
93.66
Travis Job 22874.6
Source Files on build 22874
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #22874
  • fa65783f on github
  • Prev Build on dev (#22866)
  • Next Build on dev (#22875)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc