Skip to content

Commit

Permalink
Remove unused decorator in Airly (home-assistant#35361)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu authored May 8, 2020
1 parent d03d90a commit 03ac82d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions homeassistant/components/airly/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,6 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
async_add_entities(sensors, False)


def round_state(func):
"""Round state."""

def _decorator(self):
res = func(self)
if isinstance(res, float):
return round(res)
return res

return _decorator


class AirlySensor(Entity):
"""Define an Airly sensor."""

Expand Down

0 comments on commit 03ac82d

Please sign in to comment.