Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 release: v2.1.0 #97

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion rapyuta_io/clients/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from rapyuta_io.utils.utils import create_auth_header, get_error, get_api_response_data, \
validate_key_value, response_validator, is_true
from rapyuta_io.utils.partials import PartialMixin
from rapyuta_io.utils.pollers import RefreshPollerMixin

DEVICE_API_ERRORS = {
400: ParameterMissingException,
Expand Down Expand Up @@ -217,7 +218,7 @@ def __str__(self):
PYTHON3 = '3'


class Device(PartialMixin, ObjDict):
class Device(PartialMixin, RefreshPollerMixin, ObjDict):
"""
Device class represents a device. Member variables of the class represent the
properties of device. \n
Expand Down Expand Up @@ -350,6 +351,9 @@ def is_online(self):
return True
return False

def is_ready(self):
return self.is_online()

def get_runtime(self):
"""
Get the device runtime
Expand Down
Loading