Replace pylint pointless-statement with ruff B018 (#113582)

* Replace pylint pointless-statement with ruff B018

* fix occurrences of B018

* disable pylint expression-not-assigned as well

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Sid 2024-03-17 10:58:14 +01:00 committed by GitHub
parent 7b20641651
commit 6113b99ddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 15 additions and 15 deletions

View file

@ -70,7 +70,7 @@ class LutronCover(LutronDevice, CoverEntity):
def _request_state(self) -> None:
"""Request the state from the device."""
self._lutron_device.level # pylint: disable=pointless-statement
_ = self._lutron_device.level
def _update_attrs(self) -> None:
"""Update the state attributes."""