diff --git a/homeassistant/components/sensor/ios.py b/homeassistant/components/sensor/ios.py index a50d1161676..d206cd1df87 100644 --- a/homeassistant/components/sensor/ios.py +++ b/homeassistant/components/sensor/ios.py @@ -46,6 +46,21 @@ class IOSSensor(Entity): self._state = None self._unit_of_measurement = SENSOR_TYPES[sensor_type][1] + @property + def device_info(self): + """Return information about the device.""" + return { + 'identifiers': { + (ios.DOMAIN, + self._device[ios.ATTR_DEVICE][ios.ATTR_DEVICE_PERMANENT_ID]), + }, + 'name': self._device[ios.ATTR_DEVICE][ios.ATTR_DEVICE_NAME], + 'manufacturer': 'Apple', + 'model': self._device[ios.ATTR_DEVICE][ios.ATTR_DEVICE_TYPE], + 'sw_version': + self._device[ios.ATTR_DEVICE][ios.ATTR_DEVICE_SYSTEM_VERSION], + } + @property def name(self): """Return the name of the iOS sensor."""