We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0875d2 commit bced7d7Copy full SHA for bced7d7
zha/application/platforms/sensor/__init__.py
@@ -1955,7 +1955,9 @@ def entity_description(
1955
@property
1956
def extra_state_attribute_names(self) -> set[str] | None:
1957
"""Return the extra state attribute names."""
1958
- return self.info_object.extra_state_attribute_names
+ if hasattr(self.info_object, "extra_state_attribute_names"):
1959
+ return self.info_object.extra_state_attribute_names
1960
+ return None
1961
1962
1963
def native_value(self) -> date | datetime | str | int | float | None:
0 commit comments