Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
veista committed Jan 16, 2022
1 parent 3114a4d commit 98a44c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/smartthings/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,7 @@ def native_value(self):
output = json.dumps(self._device.status.attributes[Attribute.data].value)

if "x.com.samsung.da.cooktopMonitoring" in output:
self.execute_state = self._device.status.attributes[Attribute.data].value[
"data"
]["value"]["payload"]["x.com.samsung.da.cooktopMonitoring"]
self.execute_state = self._device.status.attributes[Attribute.data].value["payload"]["x.com.samsung.da.cooktopMonitoring"]
print(self.execute_state)
return self.execute_state

Expand Down

0 comments on commit 98a44c3

Please sign in to comment.