balena-io / balena-sdk-python

Balena SDK for Python
Apache License 2.0
67 stars 46 forks source link

Reboot method should be part of the device class, not supervisor #333

Closed pranasziaukas closed 1 year ago

pranasziaukas commented 1 year ago

https://github.com/balena-io/balena-sdk-python/blob/c754672f706138d4284e66f3c549832b6ce5aac6/balena/models/device.py#L822

Looking at the code, the reboot(uuid_or_id, force) method is now part of the device class, not supervisor. Therefore, I believe the correct call should be balena.models.device.reboot('8f66ec7').

AFAICT, this applies to several other methods in the Device class.

jellyfish-bot commented 1 year ago

[pranasziaukas] This has attached https://jel.ly.fish/20ad25ab-48d8-4de1-8c83-e0a2a9cadba9