Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon attribute is not being set correctly #2

Open
Valdorama opened this issue Nov 3, 2022 · 0 comments
Open

Icon attribute is not being set correctly #2

Valdorama opened this issue Nov 3, 2022 · 0 comments

Comments

@Valdorama
Copy link

Just starting using this and it's great, but I noticed that the icon for my sensors was not being updated. Looking at the state and attribute info in HA, I can see that the icon value is being assigned to the 'state' attribute:

image

I think the problem is at line 9 in HomeAssistantEntityStateUpdateAttributes.cs:

public class HomeAssistantEntityStateUpdateAttributes
    {
        [JsonProperty(PropertyName = "friendly_name")]
        public string FriendlyName { get; set; }
        [JsonProperty(PropertyName = "state")]
        public string Icon { get; set; }
    }

Should that "state" be "icon" instead?

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

No branches or pull requests

1 participant