“AttributeError: ‘Bolt’ object has no attribute 'isonline” is coming even though I copied the code to check the status of the bolt device.
since, python language is a case sensitive language any misspelled attribute may result in an error. use ‘isOnline’ where O is capital instead of using small letter in ‘isonline’. hope this clarifies your doubt.
function which you have used is wrong isonline is not a function in bolt library its isOnline is the correct function. You have just used the wrong function with slight spelling error.
use function isOnline instead of isonline.