mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-02 18:38:05 +01:00
Bump pylint from 2.17.7 to 3.0.1 (#562)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
7980afbe70
commit
749c2d0007
@ -95,7 +95,9 @@ class APIModelBase:
|
||||
def converter_field(*, converter: Callable[[Any], _V], **kwargs: Any) -> _V:
|
||||
metadata = kwargs.pop("metadata", {})
|
||||
metadata["converter"] = converter
|
||||
return cast(_V, field(metadata=metadata, **kwargs))
|
||||
return cast(
|
||||
_V, field(metadata=metadata, **kwargs) # pylint: disable=invalid-field-call
|
||||
)
|
||||
|
||||
|
||||
@dataclass(frozen=True, order=True)
|
||||
@ -450,7 +452,7 @@ class CameraInfo(EntityInfo):
|
||||
|
||||
@_frozen_dataclass_decorator
|
||||
class CameraState(EntityState):
|
||||
data: bytes = field(default_factory=bytes)
|
||||
data: bytes = field(default_factory=bytes) # pylint: disable=invalid-field-call
|
||||
|
||||
|
||||
# ==================== CLIMATE ====================
|
||||
@ -972,7 +974,7 @@ class BluetoothGATTRead(APIModelBase):
|
||||
address: int = 0
|
||||
handle: int = 0
|
||||
|
||||
data: bytes = field(default_factory=bytes)
|
||||
data: bytes = field(default_factory=bytes) # pylint: disable=invalid-field-call
|
||||
|
||||
|
||||
@_frozen_dataclass_decorator
|
||||
@ -1042,7 +1044,9 @@ class BluetoothGATTServices(APIModelBase):
|
||||
@_frozen_dataclass_decorator
|
||||
class ESPHomeBluetoothGATTServices:
|
||||
address: int = 0
|
||||
services: list[BluetoothGATTService] = field(default_factory=list)
|
||||
services: list[BluetoothGATTService] = field( # pylint: disable=invalid-field-call
|
||||
default_factory=list
|
||||
)
|
||||
|
||||
|
||||
@_frozen_dataclass_decorator
|
||||
|
@ -1,4 +1,4 @@
|
||||
pylint==2.17.7
|
||||
pylint==3.0.1
|
||||
black==23.9.1
|
||||
flake8==6.1.0
|
||||
isort==5.12.0
|
||||
|
Loading…
Reference in New Issue
Block a user