Skip to content

Commit

Permalink
cp errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prairiesnpr committed Sep 10, 2024
1 parent 13e22c1 commit 21381db
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions zha/zigbee/cluster_handlers/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ class MultistateInputClusterHandler(ClusterHandler):
MultistateInput.AttributeDefs.reliability.name: True,
MultistateInput.AttributeDefs.status_flags.name: True,
MultistateInput.AttributeDefs.application_type.name: True,
MultistateInput.AttributeDefs.description.name: True,
}

@property
Expand All @@ -497,32 +496,32 @@ def number_of_states(self) -> int:
@property
def out_of_service(self) -> bool | None:
"""Return cached value of out of service."""
return self.cluster.get(AnalogInput.AttributeDefs.out_of_service.name)
return self.cluster.get(MultistateInput.AttributeDefs.out_of_service.name)

@property
def present_value(self) -> int:
"""Return cached value of present value."""
return self.cluster.get(AnalogInput.AttributeDefs.present_value.name)
return self.cluster.get(MultistateInput.AttributeDefs.present_value.name)

@property
def reliability(self) -> int | None:
"""Return cached value of reliability."""
return self.cluster.get(AnalogInput.AttributeDefs.reliability.name)
return self.cluster.get(MultistateInput.AttributeDefs.reliability.name)

@property
def status_flags(self) -> int | None:
"""Return cached value of status flags."""
return self.cluster.get(AnalogInput.AttributeDefs.status_flags.name)
return self.cluster.get(MultistateInput.AttributeDefs.status_flags.name)

@property
def application_type(self) -> int | None:
"""Return cached value of application type."""
return self.cluster.get(AnalogInput.AttributeDefs.application_type.name)
return self.cluster.get(MultistateInput.AttributeDefs.application_type.name)

async def async_update(self):
"""Update cluster value attribute."""
await self.get_attribute_value(
AnalogInput.AttributeDefs.present_value.name, from_cache=False
MultistateInput.AttributeDefs.present_value.name, from_cache=False
)


Expand Down

0 comments on commit 21381db

Please sign in to comment.