balena-io / balena-sdk-python

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

Docs for device tags are incorrect #366

Closed shaunmulligan closed 1 month ago

shaunmulligan commented 1 month ago

In the documentation, the code examples use balena.models.device.tag.set('890233e65de76d854d627ce9c8a7ffe0', 'testtag','test1') which fails with:

AttributeError: 'Device' object has no attribute 'tag'

The model needs to be the plural tags.set

We need to update all the examples in https://github.com/balena-io/balena-sdk-python/blob/master/balena/models/device.py where .tag is used incorrectly.

otaviojacobi commented 1 month ago

fixed by https://github.com/balena-io/balena-sdk-python/pull/367