Skip to content

Commit

Permalink
make sure to provide self when calling is_internet_available() as its…
Browse files Browse the repository at this point in the history
… signature change
  • Loading branch information
pipiche38 committed Dec 4, 2024
1 parent fdac735 commit 397247b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,11 @@ def onStart(self):
)

if self.internet_available is None:
self.internet_available = is_internet_available()
self.internet_available = is_internet_available(self)

if self.internet_available:
if check_requirements( Parameters[ "HomeFolder"] ):
# Check_requirements() return True if requirements not meet.
self.onStop()
return
if self.internet_available and check_requirements( Parameters[ "HomeFolder"] ):
self.onStop()
return

# Create Domoticz Sub menu
if "DomoticzCustomMenu" in self.pluginconf.pluginConf and self.pluginconf.pluginConf["DomoticzCustomMenu"] :
Expand Down

0 comments on commit 397247b

Please sign in to comment.