diff --git a/homeassistant/components/netgear/router.py b/homeassistant/components/netgear/router.py index 3c2497f2131..8a9a4b3ef85 100644 --- a/homeassistant/components/netgear/router.py +++ b/homeassistant/components/netgear/router.py @@ -173,6 +173,8 @@ class NetgearRouter: "link_rate": None, "signal": None, "ip": None, + "ssid": None, + "conn_ap_mac": None, } await self.async_update_device_trackers() diff --git a/homeassistant/components/netgear/sensor.py b/homeassistant/components/netgear/sensor.py index 57ffe6f98f2..4e9b55d3227 100644 --- a/homeassistant/components/netgear/sensor.py +++ b/homeassistant/components/netgear/sensor.py @@ -66,7 +66,7 @@ class NetgearSensorEntity(NetgearDeviceEntity, SensorEntity): self.entity_description = SENSOR_TYPES[self._attribute] self._name = f"{self.get_device_name()} {self.entity_description.name}" self._unique_id = f"{self._mac}-{self._attribute}" - self._state = self._device[self._attribute] + self._state = self._device.get(self._attribute) @property def native_value(self): @@ -78,7 +78,7 @@ class NetgearSensorEntity(NetgearDeviceEntity, SensorEntity): """Update the Netgear device.""" self._device = self._router.devices[self._mac] self._active = self._device["active"] - if self._device[self._attribute] is not None: + if self._device.get(self._attribute) is not None: self._state = self._device[self._attribute] self.async_write_ha_state()