Fix Shodan sensor (#65443)

This commit is contained in:
Colin Robbins
2022-02-02 20:44:16 +01:00
committed by GitHub
parent 494ef2f9b2
commit 83fa4df641
+1 -1
View File
@@ -67,7 +67,7 @@ class ShodanSensor(SensorEntity):
def update(self) -> None:
"""Get the latest data and updates the states."""
data = self.data.update()
self._attr_native_value = data.details["total"]
self._attr_native_value = data["total"]
class ShodanData: