bdraco / yalexs

Python API for Yale Access (formerly August) Smart Lock and Doorbell
MIT License
38 stars 18 forks source link

fix: timestamp division for datetime generation in tests #156

Closed EdwardBetts closed 3 weeks ago

EdwardBetts commented 3 weeks ago

This commit corrects the method of converting timestamps to datetime objects in the tests for tests/test_pubnub_activity.py. Previously, timestamps were divided by 1_000_000, which generated dates in the year 2503, causing an overflow error on i386 architectures. The division factor has been adjusted to 10_000_000 to produce more realistic dates in 2023. Additionally, underscores are used as thousand separators to enhance readability.

bdraco commented 3 weeks ago

thanks