diff --git a/homeassistant/components/netgear/router.py b/homeassistant/components/netgear/router.py index 7339b9ea1ac..40e26128d8d 100644 --- a/homeassistant/components/netgear/router.py +++ b/homeassistant/components/netgear/router.py @@ -172,6 +172,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 d8e81cd639f..9762a777194 100644 --- a/homeassistant/components/netgear/sensor.py +++ b/homeassistant/components/netgear/sensor.py @@ -65,7 +65,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): @@ -77,7 +77,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()