Skip to content

Commit

Permalink
fix:deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Oct 23, 2024
1 parent 34dc174 commit 687a162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ovos_PHAL_plugin_wifi_setup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ovos_utils.device_input import can_use_touch_mouse
from ovos_utils.gui import is_gui_running, is_gui_connected
from ovos_utils.log import LOG
from ovos_utils.network_utils import is_connected
from ovos_utils.network_utils import is_connected_http
from ovos_utils.process_utils import RuntimeRequirements


Expand Down Expand Up @@ -331,7 +331,7 @@ def handle_remove_active_client(self, message=None):
if self.active_client_id is not None:
self.bus.emit(Message(f"ovos.phal.wifi.plugin.deactivate.{self.active_client_id}"))
self.active_client_id = None
if is_connected():
if is_connected_http():
self.bus.emit(Message("mycroft.internet.connected"))
self.client_in_setup = False

Expand Down Expand Up @@ -470,7 +470,7 @@ def _watchdog(self):
sleep(1) # let client and setup do it's thing
continue

if not is_connected():
if not is_connected_http():
self.bus.emit(Message("enclosure.notify.no_internet"))
LOG.info("NO INTERNET")
if not self.is_connected_to_wifi():
Expand Down Expand Up @@ -548,7 +548,7 @@ def handle_internet_connected(self, message=None):

def handle_ready_check(self, message=None):
""" Check if internet is ready """
status = self.plugin_setup_mode == 1 or is_connected()
status = self.plugin_setup_mode == 1 or is_connected_http()
if self.client_in_setup:
LOG.debug(f"Still in setup, wait for completion")
status = False
Expand Down

0 comments on commit 687a162

Please sign in to comment.