def METHOD_NAME(self):
    if self.hwstate_attr:
        if (
            self.hwstate_attr.get_value() == "Ready"
            and self.swstate_attr.get_value() == "Ready"
        ):
            return True
    else:
        if self.swstate_attr.get_value() == "Ready":
            return True
    return False