Add per-file-ignore to pylint (#86289)

This commit is contained in:
epenet 2023-01-22 17:26:24 +01:00 committed by GitHub
parent a0810053f1
commit 30bf0634fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
114 changed files with 123 additions and 226 deletions

View file

@ -124,7 +124,7 @@ async def test_set_cover_position(hass, device_factory):
assert state.attributes[ATTR_BATTERY_LEVEL] == 95
assert state.attributes[ATTR_CURRENT_POSITION] == 10
# Ensure API called
# pylint: disable-next=protected-access
assert device._api.post_device_command.call_count == 1 # type: ignore
@ -147,7 +147,7 @@ async def test_set_cover_position_unsupported(hass, device_factory):
assert ATTR_CURRENT_POSITION not in state.attributes
# Ensure API was not called
# pylint: disable-next=protected-access
assert device._api.post_device_command.call_count == 0 # type: ignore