Skip to content

fix: handle string entries in dashboard_values in _execute_get_entities#3500

Merged
springfall2008 merged 1 commit intospringfall2008:mainfrom
brettjenkins:fix/mcp-get-entities-string-attribute
Mar 5, 2026
Merged

fix: handle string entries in dashboard_values in _execute_get_entities#3500
springfall2008 merged 1 commit intospringfall2008:mainfrom
brettjenkins:fix/mcp-get-entities-string-attribute

Conversation

@brettjenkins
Copy link
Contributor

@brettjenkins brettjenkins commented Mar 5, 2026

Summary

  • Fixes AttributeError: 'str' object has no attribute 'get' when calling the get_entities MCP tool
  • dashboard_values contains mixed types — some entries are plain strings (entity IDs) rather than dicts
  • Fix: check isinstance(entity, str) before calling .get(), treating string entries as bare entity IDs

Fixes #3498

dashboard_values contains mixed types — some entries are plain strings
(entity IDs) rather than dicts. Calling .get() on a string raises:

    AttributeError: 'str' object has no attribute 'get'

Fix: check isinstance(entity, str) before calling .get(), treating string
entries as bare entity IDs with no additional attributes.

Fixes springfall2008#3498
@springfall2008 springfall2008 requested a review from Copilot March 5, 2026 18:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@springfall2008 springfall2008 merged commit 2cf1d22 into springfall2008:main Mar 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: get_entities tool fails with AttributeError: 'str' object has no attribute 'get'

3 participants