def METHOD_NAME(self) -> PowerManager.State:
    if self._hardblocked:
        return PowerManager.State.OFF_FORCED
    elif self._enabled:
        return PowerManager.State.ON
    else:
        return PowerManager.State.OFF