Skip to content

Conversation

@greschd
Copy link
Member

@greschd greschd commented Aug 18, 2023

Sensor attributes which are not set in the API message are exposed as None.

To enable this, the check_optional flag is added to grpc_read_only_property.

@greschd greschd marked this pull request as ready for review August 18, 2023 19:37
Copy link
Contributor

@roosre roosre left a comment

Choose a reason for hiding this comment

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

Thanks for implementing it. See minor comments.

Inactive sensors are not evaluated.
entities :
List of entities which define the sensor's scope.
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth to document the result entities?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added a doc attribute to the property helpers, to set the docstring of the properties. Opened #267 as a follow-up to enable documenting the read-write properties (the result entities are read-only) also as both parameter and attribute, without duplication.

@greschd greschd enabled auto-merge (squash) August 21, 2023 09:52
@greschd greschd merged commit 93785bf into main Aug 21, 2023
@greschd greschd deleted the feat/sensor branch August 21, 2023 10:01
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.

4 participants