From 4dc653ccbaef7a7fd4a86fd86a76d8edc806c431 Mon Sep 17 00:00:00 2001 From: Michael Wyraz Date: Thu, 6 Apr 2017 20:12:45 +0200 Subject: [PATCH] Fix lint --- homeassistant/components/sensor/min_max.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/min_max.py b/homeassistant/components/sensor/min_max.py index 1c2784a8c9d..08087f9a1e3 100644 --- a/homeassistant/components/sensor/min_max.py +++ b/homeassistant/components/sensor/min_max.py @@ -165,7 +165,7 @@ class MinMaxSensor(Entity): @property def state(self): """Return the state of the sensor.""" - if (self._unit_of_measurement_mismatch): + if self._unit_of_measurement_mismatch: return STATE_UNKNOWN return getattr(self, next( k for k, v in SENSOR_TYPES.items() if self._sensor_type == v)) @@ -173,7 +173,7 @@ class MinMaxSensor(Entity): @property def unit_of_measurement(self): """Return the unit the value is expressed in.""" - if (self._unit_of_measurement_mismatch): + if self._unit_of_measurement_mismatch: return "ERR" return self._unit_of_measurement