Remove unneeded pylint disables (#60235)

pull/60199/head
Ville Skyttä 2021-11-23 22:40:53 +02:00 committed by GitHub
parent 6588879b6e
commit 7c6a72b086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -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]

View File

@ -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)),

View File

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