Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion custom_components/o365/const.py
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@ class EventResponse(Enum):
ATTR_EVENT_ID = "event_id"
ATTR_FROM_DISPLAY_NAME = "from_display_name"
ATTR_GROUP = "group"
ATTR_ICON = "icon"
ATTR_IS_ALL_DAY = "is_all_day"
ATTR_IMPORTANCE = "importance"
ATTR_LOCATION = "location"
10 changes: 3 additions & 7 deletions custom_components/o365/sensor.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@
ATTR_CHAT_ID,
ATTR_CONTENT,
ATTR_FROM_DISPLAY_NAME,
ATTR_ICON,
ATTR_IMPORTANCE,
ATTR_SUBJECT,
ATTR_SUMMARY,
@@ -268,12 +267,9 @@ def state(self):
return self._state

@property
def extra_state_attributes(self):
"""Return entity specific state attributes."""
attributes = {
ATTR_ICON: "mdi:microsoft-teams",
}
return attributes
def icon(self):
"""Entity icon."""
return "mdi:microsoft-teams"

async def async_update(self):
"""Update state."""

0 comments on commit 8bd2502

Please sign in to comment.