Improve pylint disable rule in zha (#72835)

This commit is contained in:
epenet 2022-06-01 16:49:43 +02:00 committed by GitHub
parent 4c7837a576
commit df5285f681
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class OppleRemote(ZigbeeChannel):
"""Initialize Opple channel."""
super().__init__(cluster, ch_pool)
if self.cluster.endpoint.model == "lumi.motion.ac02":
self.ZCL_INIT_ATTRS = { # pylint: disable=C0103
self.ZCL_INIT_ATTRS = { # pylint: disable=invalid-name
"detection_interval": True,
"motion_sensitivity": True,
"trigger_indicator": True,