alexmohr / sonyapilib

Contains a python api to control sony devices.
MIT License
20 stars 11 forks source link

UUID should be persistent #32

Closed dilruacs closed 5 years ago

dilruacs commented 5 years ago

https://github.com/alexmohr/sonyapilib/blob/0d8548ed5fa22b574016e5d09822b35d613a8da3/sonyapilib/device.py#L99

Every time a SonyDevice object is created, a new UUID is generated. I think the UUID should be stored in the json file, so the UUID is the same on the next invocation.

alexmohr commented 5 years ago

The uuid is stored in the json file because the whole object is serialized. See https://github.com/alexmohr/sonyapilib/blob/118293e07f679eaf93d15b0933cc80ca216f551b/tests/deviceTest.py#L147