Explorar o código

Increase updater interval + add libpcap-dev

Joachim M. Giæver %!s(int64=3) %!d(string=hai) anos
pai
achega
8e7138f1f6
Modificáronse 2 ficheiros con 12 adicións e 1 borrados
  1. 11 0
      snap/snapcraft.yaml
  2. 1 1
      src/components/updater/__init__.py

+ 11 - 0
snap/snapcraft.yaml

@@ -69,6 +69,10 @@ apps:
       - removable-media
     slots: 
       - components
+  open-localhost:
+    command: bin/open-localhost
+    plugs:
+      - desktop
   check-config:
     plugs: 
       - network
@@ -109,6 +113,7 @@ parts:
       - libgpiod-dev
       - libjpeg-dev
       - libopenzwave1.5-dev
+      - libpcap0.8-dev
       - libswresample-dev
       - libssl-dev
       - libswscale-dev
@@ -139,6 +144,12 @@ parts:
     source-type: local
     organize:
       '*': lib/python3.8/site-packages/homeassistant/components/
+  bins:
+    plugin: dump
+    source: ./src/bin
+    source-type: local
+    organize:
+      open-localhost: bin/open-localhost
   hooks:
     plugin: dump
     source: ./src/hooks

+ 1 - 1
src/components/updater/__init__.py

@@ -346,7 +346,7 @@ async def async_setup(hass, config):
         _LOGGER,
         name="Home Assistant Snap update",
         update_method=check_new_version,
-        update_interval=timedelta(seconds=45)
+        update_interval=timedelta(days=1)
     )
 
     asyncio.create_task(coordinator.async_refresh())