Skip to content

Commit

Permalink
Add is_enabled as custom attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Collin committed Jun 23, 2023
1 parent e525701 commit c5f9207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/solar_optimizer/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def update_custom_attributes(self, device):
"""Add some custom attributes to the entity"""
current_tz = get_tz(self._hass)
self._attr_extra_state_attributes: dict(str, str) = {
"is_enabled": device.is_enabled,
"is_active": device.is_active,
"is_waiting": device.is_waiting,
"is_usable": device.is_usable,
Expand Down

0 comments on commit c5f9207

Please sign in to comment.