Traceback (most recent call last):


 "test.py", line 21, in <module>

image = ImageOps.exif_transpose(image)


 "/home/cezar/Programs/anaconda3/envs/detectron/lib/python3.7/site-packages/PIL/ImageOps.py", line 549, in exif_transpose

transposed_image.info["exif"] = exif.tobytes()


 "/home/cezar/Programs/anaconda3/envs/detectron/lib/python3.7/site-packages/PIL/Image.py", line 3213, in tobytes

return b"Exif\x00\x00" + head + ifd.tobytes(offset)


 "/home/cezar/Programs/anaconda3/envs/detectron/lib/python3.7/site-packages/PIL/TiffImagePlugin.py", line 837, in tobytes

count = len(data)
TypeError: object of type 'int' has no len()

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform

await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)


 "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for

return fut.result()


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/miflora/sensor.py", line 75, in async_setup_platform

backend=backend,


 "/srv/homeassistant/lib/python3.7/site-packages/miflora/miflora_poller.py", line 37, in __init__

self._bt_interface = BluetoothInterface(backend, adapter)
TypeError: __init__() takes 2 positional arguments but 3 were given`
