Skip to content

Commit

Permalink
Merge pull request #80 from rdeveen/master
Browse files Browse the repository at this point in the history
Change icon of Team Status Sensor to real Teams Icon
  • Loading branch information
RogerSelwyn authored Nov 13, 2022
2 parents 6dbf28a + 9e6fd7d commit 7d7d71c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions custom_components/o365/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ def state(self):
"""State property."""
return self._state

@property
def icon(self):
"""Entity icon."""
return "mdi:microsoft-outlook"

@property
def extra_state_attributes(self):
"""Device state attributes."""
Expand Down Expand Up @@ -266,6 +271,11 @@ def state(self):
"""Sensor state."""
return self._state

@property
def icon(self):
"""Entity icon."""
return "mdi:microsoft-teams"

async def async_update(self):
"""Update state."""
data = await self.hass.async_add_executor_job(self._teams.get_my_presence)
Expand Down Expand Up @@ -297,6 +307,11 @@ def state(self):
"""Sensor state."""
return self._state

@property
def icon(self):
"""Entity icon."""
return "mdi:microsoft-teams"

@property
def extra_state_attributes(self):
"""Return entity specific state attributes."""
Expand Down

0 comments on commit 7d7d71c

Please sign in to comment.