parameters: ()
docstring: Set up extra stores in HACS if enabled in Home Assistant.
docstring_summary: Set up extra stores in HACS if enabled in Home Assistant.
docstring_tokens: Set up extra stores in HACS if enabled in Home Assistant .
function: def _setup_extra_stores():
      """Set up extra stores in HACS if enabled in Home Assistant."""
      hacs = get_hacs()
      hacs.log.debug("Starting setup task: Extra stores")
      hacs.common.categories = set()
      for category in ELEMENT_TYPES:
          enable_category(hacs, HacsCategory(category))
  
      if HacsCategory.PYTHON_SCRIPT in hacs.hass.config.components:
          enable_category(hacs, HacsCategory.PYTHON_SCRIPT)
  
      if (
          hacs.hass.services._services.get("frontend", {}).get("reload_themes")
          is not None
      ):
          enable_category(hacs, HacsCategory.THEME)
  
      if hacs.configuration.appdaemon:
          enable_category(hacs, HacsCategory.APPDAEMON)
      if hacs.configuration.netdaemon:
          enable_category(hacs, HacsCategory.NETDAEMON)
function_tokens: def _setup_extra_stores ( ) : hacs = get_hacs ( ) hacs . log . debug ( "Starting setup task: Extra stores" ) hacs . common . categories = set ( ) for category in ELEMENT_TYPES : enable_category ( hacs , HacsCategory ( category ) ) if HacsCategory . PYTHON_SCRIPT in hacs . hass . config . components : enable_category ( hacs , HacsCategory . PYTHON_SCRIPT ) if ( hacs . hass . services . _services . get ( "frontend" , { } ) . get ( "reload_themes" ) is not None ) : enable_category ( hacs , HacsCategory . THEME ) if hacs . configuration . appdaemon : enable_category ( hacs , HacsCategory . APPDAEMON ) if hacs . configuration . netdaemon : enable_category ( hacs , HacsCategory . NETDAEMON )