Use PLATFORM_SCHEMA_BASE as base schema for additional components. (#20578)

* Disable extra=vol.ALLOW_EXTRA for additional platforms.

* Remove PLATFORM_SCHEMA_2

* Add entity_namespace to base platform schema
This commit is contained in:
emontnemery authored and Paulus Schoutsen committed 2019-02-04 21:52:19 -08:00
1 parent 154b401d0a
commit b1faad0a50
32 files changed
+75 -81

No files matched your search

@@ -13,7 +13,8 @@ import voluptuous as vol
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.entity import Entity
from homeassistant.const import (STATE_ON, STATE_OFF)
from homeassistant.helpers.config_validation import PLATFORM_SCHEMA # noqa
from homeassistant.helpers.config_validation import ( # noqa
PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE)
DOMAIN = 'binary_sensor'
SCAN_INTERVAL = timedelta(seconds=30)