Skip to content

Conversation

@404GamerNotFound
Copy link
Owner

Motivation

  • Prevent an AttributeError during reconfiguration when zeroconf discovery_info is not a dict-like object but an attribute-based object.
  • Ensure the sensor.VServer_containers value is formatted with spaces after commas for better readability.
  • Accept multiple zeroconf payload shapes (mapping vs attribute object) and prefer any available ip_address when host is missing.

Description

  • Update async_step_zeroconf in config_flow.py to accept Mapping-style discovery_info, check ip_address as a fallback, and handle attribute-style objects via getattr to avoid using .get on non-mapping objects.
  • Normalize the raw containers string in ssh_collector.py by splitting on commas, trimming parts, and joining with ", " before returning it in the result dict.
  • Add the Mapping import and adjust imports ordering in config_flow.py to support the new check.

Testing

  • No automated tests were executed for these changes.

Codex Task

@404GamerNotFound 404GamerNotFound merged commit 9d344a0 into main Jan 12, 2026
2 checks passed
@404GamerNotFound 404GamerNotFound deleted the codex/fix-internal-server-error-on-ssh-key branch January 12, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants