Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups * Remove outdated pylint bug references * Add flake8-noqa config and note to run it every now and then * Add codes to noqa's * Unused noqa cleanups
This commit is contained in:
parent
38a2f196b8
commit
dc880118a4
217 changed files with 237 additions and 306 deletions
|
@ -242,7 +242,6 @@ class MqttBinarySensor(MqttEntity, BinarySensorEntity):
|
|||
def available(self) -> bool:
|
||||
"""Return true if the device is available and value has not expired."""
|
||||
expire_after = self._config.get(CONF_EXPIRE_AFTER)
|
||||
# pylint: disable=no-member
|
||||
return MqttAvailability.available.fget(self) and (
|
||||
expire_after is None or not self._expired
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue