Bugfix: removed conf_platform (#2811)

* Bugfix: removed conf_platform

* Remove unused import

* Fix for wrong update
pull/2806/merge
Open Home Automation 2016-08-13 23:16:06 +02:00 committed by Paulus Schoutsen
parent 8ba85effd4
commit 8329472c72
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ https://home-assistant.io/components/sensor.serial_pm/
import logging
import voluptuous as vol
from homeassistant.const import CONF_NAME, CONF_PLATFORM
from homeassistant.const import CONF_NAME
from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
@ -21,7 +21,6 @@ CONF_SERIAL_DEVICE = "serial_device"
CONF_BRAND = "brand"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_PLATFORM): 'serial_pm',
vol.Optional(CONF_NAME, default=""): cv.string,
vol.Required(CONF_SERIAL_DEVICE): cv.string,
vol.Required(CONF_BRAND): cv.string,