You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was debugging why my mjpg_streamer images wouldn't show in Home Assistant's preview cards. Turns out HA is using PyTurboJPEG to try to rescale down the source image to a better fit to the card size, but my camera is producing some flaky (m)jpeg output that triggers these warnings:
It turns out the return in this line needs to be removed:
ifstatus!=0:
self.__report_error(handle)
return
__report_error() will already raise an exception when an actual error has occurred, so no return is necessary. When what we had was a warning only, the return will prevent the code from proceeding.
I tested this by modifying my own installation to remove the line and see that I now have this camera's preview in the HA card.
The text was updated successfully, but these errors were encountered:
I was debugging why my
mjpg_streamer
images wouldn't show in Home Assistant's preview cards. Turns out HA is using PyTurboJPEG to try to rescale down the source image to a better fit to the card size, but my camera is producing some flaky (m)jpeg output that triggers these warnings:It turns out the
return
in this line needs to be removed:__report_error()
will already raise an exception when an actual error has occurred, so no return is necessary. When what we had was a warning only, thereturn
will prevent the code from proceeding.I tested this by modifying my own installation to remove the line and see that I now have this camera's preview in the HA card.
The text was updated successfully, but these errors were encountered: