hassio/ingress.py
async def update_hass_panel(self, addon: Addon):
        """Return True if Home Assistant up and running."""
        method = "post" if addon.ingress_panel else "delete"
        async with self.sys_homeassistant.make_request(
            method, f"api/hassio_push/panel/{addon.slug}"
        ) as resp:
            if resp.status in (200, 201):
                _LOGGER.info("Update Ingress as panel for %s", addon.slug)
            else:
                _LOGGER.warning(
                    "Fails Ingress panel for %s with %i", addon.slug, resp.status
                )
Return True if Home Assistant up and running.
Return True if Home Assistant up and running.
Return True if Home Assistant up and running .
async def update_hass_panel(self, addon: Addon):
        method = "post" if addon.ingress_panel else "delete"
        async with self.sys_homeassistant.make_request(
            method, f"api/hassio_push/panel/{addon.slug}"
        ) as resp:
            if resp.status in (200, 201):
                _LOGGER.info("Update Ingress as panel for %s", addon.slug)
            else:
                _LOGGER.warning(
                    "Fails Ingress panel for %s with %i", addon.slug, resp.status
                )
async def update_hass_panel ( self , addon : Addon ) : method = "post" if addon . ingress_panel else "delete" async with self . sys_homeassistant . make_request ( method , f"api/hassio_push/panel/{addon.slug}" ) as resp : if resp . status in ( 200 , 201 ) : _LOGGER . info ( "Update Ingress as panel for %s" , addon . slug ) else : _LOGGER . warning ( "Fails Ingress panel for %s with %i" , addon . slug , resp . status )
Return True if Home Assistant up and running.
Return True if Home Assistant up and running .
"""Return True if Home Assistant up and running."""
self
addon
Addon