From 1ae2bfcc89396244d241b0a91a67939e2f78bd49 Mon Sep 17 00:00:00 2001 From: Colin Robbins Date: Wed, 2 Feb 2022 19:44:16 +0000 Subject: [PATCH] Fix Shodan sensor (#65443) --- homeassistant/components/shodan/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shodan/sensor.py b/homeassistant/components/shodan/sensor.py index 6fc73f40096..bdef681fdd2 100644 --- a/homeassistant/components/shodan/sensor.py +++ b/homeassistant/components/shodan/sensor.py @@ -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: