Fix Shodan sensor (#65443)

This commit is contained in:
Colin Robbins 2022-02-02 19:44:16 +00:00 committed by GitHub
parent 494ef2f9b2
commit 83fa4df641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: