From 89e8e1a4c7ea00bc21fb391a7d63d13aa9fc1d4c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 10 Apr 2017 18:43:40 +0200 Subject: [PATCH] Replace 'vendor_id' with 'arch' (fixes #7003) (#7023) --- homeassistant/components/sensor/cpuspeed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/cpuspeed.py b/homeassistant/components/sensor/cpuspeed.py index a86d28a1a06..eeb52b8e35b 100644 --- a/homeassistant/components/sensor/cpuspeed.py +++ b/homeassistant/components/sensor/cpuspeed.py @@ -19,7 +19,7 @@ _LOGGER = logging.getLogger(__name__) ATTR_BRAND = 'Brand' ATTR_HZ = 'GHz Advertised' -ATTR_VENDOR = 'Vendor ID' +ATTR_ARCH = 'arch' DEFAULT_NAME = 'CPU speed' ICON = 'mdi:pulse' @@ -67,7 +67,7 @@ class CpuSpeedSensor(Entity): """Return the state attributes.""" if self.info is not None: return { - ATTR_VENDOR: self.info['vendor_id'], + ATTR_ARCH: self.info['arch'], ATTR_BRAND: self.info['brand'], ATTR_HZ: round(self.info['hz_advertised_raw'][0]/10**9, 2) }