Enable Ruff D212 (#87347)

This commit is contained in:
Franck Nijhof 2023-02-03 23:08:48 +01:00 committed by GitHub
parent 97de0c6d9a
commit ca1a12898c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
237 changed files with 353 additions and 707 deletions

View file

@ -72,8 +72,7 @@ class HomeKitEntity(Entity):
self._accessory.remove_watchable_characteristics(self._aid)
async def async_put_characteristics(self, characteristics: dict[str, Any]) -> None:
"""
Write characteristics to the device.
"""Write characteristics to the device.
A characteristic type is unique within a service, but in order to write
to a named characteristic on a bridge we need to turn its type into
@ -195,8 +194,7 @@ class AccessoryEntity(HomeKitEntity):
class CharacteristicEntity(HomeKitEntity):
"""
A HomeKit entity that is related to an single characteristic rather than a whole service.
"""A HomeKit entity that is related to an single characteristic rather than a whole service.
This is typically used to expose additional sensor, binary_sensor or number entities that don't belong with
the service entity.