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 looking into using this for home-assistant. In the process I noticed that it doesn't work properly with python3.
Traceback (most recent call last):
File "anova.py", line 13, in <module>
print(anova.read_unit())
File "/srv/hass/lib/python3.4/site-packages/pycirculate/anova.py", line 74, in read_unit
return self.send_command_async("read unit")
File "/srv/hass/lib/python3.4/site-packages/pycirculate/anova.py", line 64, in send_command_async
self._send_command(command)
File "/srv/hass/lib/python3.4/site-packages/pycirculate/anova.py", line 54, in _send_command
self.characteristic.write(command)
File "/srv/hass/lib/python3.4/site-packages/bluepy/btle.py", line 148, in write
self.peripheral.writeCharacteristic(self.valHandle, val, withResponse)
File "/srv/hass/lib/python3.4/site-packages/bluepy/btle.py", line 458, in writeCharacteristic
self._writeCmd("%s %X %s\n" % (cmd, handle, binascii.b2a_hex(val).decode('utf-8')))
TypeError: 'str' does not support the buffer interface
Making this change appears to fix it (although I don't know what it does to python2)
I was looking into using this for home-assistant. In the process I noticed that it doesn't work properly with python3.
Making this change appears to fix it (although I don't know what it does to python2)
The text was updated successfully, but these errors were encountered: