Remove unneeded pylint disables (#60235)
parent
6588879b6e
commit
7c6a72b086
|
@ -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]
|
||||
|
||||
|
|
|
@ -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)),
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue