Skip to content

Commit

Permalink
Removed unnecessary vol.schema
Browse files Browse the repository at this point in the history
  • Loading branch information
benvm committed Feb 6, 2019
1 parent 906433d commit 73170d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/components/modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
})

CONFIG_SCHEMA = vol.Schema({
DOMAIN:
vol.All(cv.ensure_list,
vol.Schema([vol.Any(SERIAL_SCHEMA, ETHERNET_SCHEMA)]))
DOMAIN: vol.All(cv.ensure_list, [vol.Any(SERIAL_SCHEMA, ETHERNET_SCHEMA)])
}, extra=vol.ALLOW_EXTRA,)

_LOGGER = logging.getLogger(__name__)
Expand Down

0 comments on commit 73170d0

Please sign in to comment.