Remove invalid pylint field call checks

This check no longer exists in pylint
This commit is contained in:
J. Nick Koston 2023-11-26 13:57:55 -06:00
parent 1a7ce50f63
commit f1bc3c4de1
No known key found for this signature in database
1 changed files with 6 additions and 8 deletions

View File

@ -93,9 +93,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) # pylint: disable=invalid-field-call
)
if TYPE_CHECKING:
return cast(_V, field(metadata=metadata, **kwargs))
return field(metadata=metadata, **kwargs)
@dataclass(frozen=True, order=True)
@ -451,7 +451,7 @@ class CameraInfo(EntityInfo):
@_frozen_dataclass_decorator
class CameraState(EntityState):
data: bytes = field(default_factory=bytes) # pylint: disable=invalid-field-call
data: bytes = field(default_factory=bytes)
# ==================== CLIMATE ====================
@ -983,7 +983,7 @@ class BluetoothGATTRead(APIModelBase):
address: int = 0
handle: int = 0
data: bytes = field(default_factory=bytes) # pylint: disable=invalid-field-call
data: bytes = field(default_factory=bytes)
@_frozen_dataclass_decorator
@ -1053,9 +1053,7 @@ class BluetoothGATTServices(APIModelBase):
@_frozen_dataclass_decorator
class ESPHomeBluetoothGATTServices:
address: int = 0
services: list[BluetoothGATTService] = field( # pylint: disable=invalid-field-call
default_factory=list
)
services: list[BluetoothGATTService] = field(default_factory=list)
@_frozen_dataclass_decorator