jpmens/homie-ota

OTA for Homie 1.5 broken in spite of supposed fix

alarmschaben opened this issue · 1 comments

First of all, thanks for the great tool!

It appears that e047121 intends to enable backwards compatibility for Home 1.5 devices using the old multiple '=' convention.

However, when trying to update the firmware on a Home 1.5 device with the Homie version in platform.io (which I think is 1.5), the OTA request fails with

File "./homie-ota.py", line 410, in ota
    device, f = headers.get('X-Esp8266-Version', None).split('=')
ValueError: too many values to unpack

My weak python-foo tells me that homie-ota is actually expecting a 2.0-style header with the '->' convention.

closed via #48