Skip to content

Missing setuptools dependencies #432

@jimparis

Description

@jimparis

The HA plugin needs setuptools, otherwise it will silently fail to load for recent Python versions that no longer package distutils:

With just home-assistant-cli:

$ uv run --with git+https://github.com/home-assistant-ecosystem/home-assistant-cli@dev hass-cli ha --help
Usage: hass-cli [OPTIONS] COMMAND [ARGS]...
Try 'hass-cli --help' for help.

Error: No such command 'ha'.

With setuptools manually added:

$ uv run --with git+https://github.com/home-assistant-ecosystem/home-assistant-cli@dev,setuptools hass-cli ha --help
Usage: hass-cli ha [OPTIONS] COMMAND [ARGS]...

  Home Assistant (former Hass.io) commands.

Options:
  --help  Show this message and exit.

Commands:
  addons      Home Assistant addons commands.
  core        Home Assistant core commands.
  dns         Home Assistant DNS commands.
  ha-cli      Home Assistant ha-cli commands.
  hardware    Home Assistant hardware info.
  host        Home Assistant host commands.
  multicast   Home Assistant Multicast commands.
  os          Home Assistant os commands.
  snapshot    Home Assistant snapshot commands.
  supervisor  Home Assistant supervisor commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions