Remove unused decorator in Airly (#35361)

pull/34708/head
Maciej Bieniek 2020-05-08 15:10:14 +02:00 committed by GitHub
parent d03d90a955
commit 03ac82d440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -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."""