Fix Shodan sensor (#65443)

This commit is contained in:
Colin Robbins 2022-02-02 19:44:16 +00:00 committed by Paulus Schoutsen
parent 1155d229f3
commit 1ae2bfcc89

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: