Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
use class property to define skill as offline (#70)
Browse files Browse the repository at this point in the history
* use class property to define skill as offline

* fix import

* bump workshop requirements

* update imports

* fix requirements
  • Loading branch information
AIIX authored Jan 31, 2023
1 parent b70d636 commit fb390d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from ovos_utils.network_utils import is_connected
from ovos_workshop.decorators import killable_event
from ovos_workshop.skills import OVOSSkill
from ovos_workshop.skills.base import SkillNetworkRequirements, classproperty


class SetupState(str, Enum):
Expand Down Expand Up @@ -241,6 +242,16 @@ def __init__(self):
self._state = SetupState.LOADING
self.selected_language = None

@classproperty
def network_requirements(self):
SkillNetworkRequirements(internet_before_load=False,
network_before_load=False,
requires_internet=False,
requires_network=False,
no_internet_fallback=True,
no_network_fallback=True)
return SkillNetworkRequirements()

@property
def pairing_mode(self):
if not is_gui_running() or not can_use_touch_mouse():
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ovos_workshop>=0.0.7a8
ovos_workshop~=0.0, >=0.0.10
ovos_backend_client~=0.0, >=0.0.6a8
ovos-PHAL-plugin-system>=0.0.2a5
ovos-plugin-manager>=0.0.19
ovos_utils>=0.0.25
ovos_utils>=0.0.25

0 comments on commit fb390d4

Please sign in to comment.