Clean-up, ordering, constants, and extend of schema (#2903)
* Clean-up, ordering, constants, and extend of schema * Put REQUIREMENTS back and re-add line breaks * Clean-up, ordering, constants, and extend of schema * Extend platform
This commit is contained in:
parent
8fc27cbe43
commit
e8c6e4d561
28 changed files with 232 additions and 228 deletions
|
@ -15,18 +15,19 @@ from homeassistant.helpers.entity import Entity
|
|||
|
||||
REQUIREMENTS = ['py-cpuinfo==0.2.3']
|
||||
|
||||
DEFAULT_NAME = 'CPU speed'
|
||||
ATTR_VENDOR = 'Vendor ID'
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTR_BRAND = 'Brand'
|
||||
ATTR_HZ = 'GHz Advertised'
|
||||
ATTR_VENDOR = 'Vendor ID'
|
||||
|
||||
DEFAULT_NAME = 'CPU speed'
|
||||
ICON = 'mdi:pulse'
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
|
||||
})
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# pylint: disable=unused-variable
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue