diff --git a/homeassistant/components/environment_canada/__init__.py b/homeassistant/components/environment_canada/__init__.py index 01d74179f41..5e52d3631f6 100644 --- a/homeassistant/components/environment_canada/__init__.py +++ b/homeassistant/components/environment_canada/__init__.py @@ -78,7 +78,7 @@ def trigger_import(hass, config): CONF_LATITUDE, CONF_LONGITUDE, CONF_LANGUAGE, - ): # pylint: disable=consider-using-tuple + ): if config.get(key): data[key] = config[key] diff --git a/homeassistant/components/knx/light.py b/homeassistant/components/knx/light.py index 0403b658221..580293a15d8 100644 --- a/homeassistant/components/knx/light.py +++ b/homeassistant/components/knx/light.py @@ -219,7 +219,6 @@ class KNXLight(KnxEntity, LightEntity): if rgb is not None: if not self._device.supports_brightness: # brightness will be calculated from color so color must not hold brightness again - # pylint: disable=protected-access return cast( Tuple[int, int, int], color_util.match_max_scale((255,), rgb) ) @@ -234,7 +233,6 @@ class KNXLight(KnxEntity, LightEntity): if rgb is not None and white is not None: if not self._device.supports_brightness: # brightness will be calculated from color so color must not hold brightness again - # pylint: disable=protected-access return cast( Tuple[int, int, int, int], color_util.match_max_scale((255,), (*rgb, white)), diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index a26da695e27..4d301e7d1b6 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -534,7 +534,7 @@ class Entity(ABC): attr[ATTR_UNIT_OF_MEASUREMENT] = unit_of_measurement entry = self.registry_entry - # pylint: disable=consider-using-ternary + if assumed_state := self.assumed_state: attr[ATTR_ASSUMED_STATE] = assumed_state