Skip to content

Commit

Permalink
Fix use GeneratedObjects for remove noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
DamMicSzm committed Jun 30, 2023
1 parent ed6a5c9 commit f9d0bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/python/chip/ChipDeviceCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from .clusters import Attribute as ClusterAttribute
from .clusters import ClusterObjects as ClusterObjects
from .clusters import Command as ClusterCommand
from .clusters import Objects as GeneratedObjects # noqa: F401 Need for eval
from .clusters import Objects as GeneratedObjects
from .clusters.CHIPClusters import ChipClusters
from .crypto import p256keypair
from .exceptions import UnknownAttribute, UnknownCommand
Expand Down Expand Up @@ -1199,7 +1199,7 @@ def ZCLSend(self, cluster, command, nodeid, endpoint, groupid, args, blocking=Fa
def ZCLReadAttribute(self, cluster, attribute, nodeid, endpoint, groupid, blocking=True):
self.CheckIsActive()

clusterType = eval(f"GeneratedObjects.{cluster}")
clusterType = getattr(GeneratedObjects, cluster)

try:
attributeType = eval(
Expand Down

0 comments on commit f9d0bce

Please sign in to comment.