Remove invalid pylint field call checks
This check no longer exists in pylint
This commit is contained in:
parent
1a7ce50f63
commit
f1bc3c4de1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue