From 03ac82d440b2aa81be88191ca5e501be26330f8d Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Fri, 8 May 2020 15:10:14 +0200 Subject: [PATCH] Remove unused decorator in Airly (#35361) --- homeassistant/components/airly/sensor.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/homeassistant/components/airly/sensor.py b/homeassistant/components/airly/sensor.py index ec7b8cb3c76..a0c5975188b 100644 --- a/homeassistant/components/airly/sensor.py +++ b/homeassistant/components/airly/sensor.py @@ -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."""