Release v2.0.0

This commit is contained in:
SMKRV
2024-11-23 03:02:35 +03:00
parent 6ecc3f72d1
commit 12d87e30e1
4 changed files with 12961 additions and 6 deletions
+2 -6
View File
@@ -99,12 +99,8 @@ class HATextAISensor(CoordinatorEntity, SensorEntity):
@property
def icon(self) -> str:
"""Return the icon based on the current state."""
if self._current_state == STATE_PROCESSING:
return ENTITY_ICON_PROCESSING
elif self._current_state in [STATE_ERROR, STATE_DISCONNECTED, STATE_RATE_LIMITED]:
return ENTITY_ICON_ERROR
return ENTITY_ICON
"""Always return the custom icon."""
return "/local/icons/icon.svg"
@property
def state(self) -> StateType: