mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix Shodan sensor (#65443)
This commit is contained in:
parent
1155d229f3
commit
1ae2bfcc89
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user