danimtb / dasshio

Hass.io add-on to easily use Amazon Dash Buttons with Home Assistant
Apache License 2.0
194 stars 63 forks source link

DateTime problem again #79

Closed dustardly closed 5 years ago

dustardly commented 5 years ago

same before

hassio 0.91.3 dasshio 0.3.3

2019-04-15 17:05:16,891 | INFO | Starting sniffing... 2019-04-15 17:05:18,415 | ERROR | Caught exception in sniff: module 'datetime' has no attribute 'utcnow' Traceback (most recent call last): File "/dasshio.py", line 172, in count=0) File "/usr/lib/python3.6/site-packages/scapy/sendrecv.py", line 889, in sniff if stop_filter and stop_filter(p): File "/dasshio.py", line 32, in arp_display current_time = datetime.utcnow() AttributeError: module 'datetime' has no attribute 'utcnow' 2019-04-15 17:05:18,431 | INFO | Finishing sniffing 2019-04-15 17:05:18,432 | INFO | Starting sniffing... 2019-04-15 17:05:18,562 | ERROR | Caught exception in sniff: module 'datetime' has no attribute 'utcnow' Traceback (most recent call last):

lubeda commented 5 years ago

Same here, even after reinstall of the addon. I am on an x86 Dashio 0.3.3 Home Assistant 0.91.3

danimtb commented 5 years ago

ok, I think the import was wrong again. I have to implement some tests... Thanks for reporting

danimtb commented 5 years ago

Fixed in https://github.com/danimtb/dasshio/commit/a65b871e9b7c83a2a7723a6f82c2d208030b409d