Remove double schema validation in network (#51219)

This commit is contained in:
J. Nick Koston 2021-05-29 07:09:49 -05:00 committed by GitHub
parent c2f5dcefa5
commit d1132270b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ from homeassistant.core import HomeAssistant, callback
from .const import ( from .const import (
ATTR_CONFIGURED_ADAPTERS, ATTR_CONFIGURED_ADAPTERS,
DEFAULT_CONFIGURED_ADAPTERS, DEFAULT_CONFIGURED_ADAPTERS,
NETWORK_CONFIG_SCHEMA,
STORAGE_KEY, STORAGE_KEY,
STORAGE_VERSION, STORAGE_VERSION,
) )
@ -63,7 +62,6 @@ class Network:
async def async_reconfig(self, config: dict[str, Any]) -> None: async def async_reconfig(self, config: dict[str, Any]) -> None:
"""Reconfigure network.""" """Reconfigure network."""
config = NETWORK_CONFIG_SCHEMA(config)
self._data[ATTR_CONFIGURED_ADAPTERS] = config[ATTR_CONFIGURED_ADAPTERS] self._data[ATTR_CONFIGURED_ADAPTERS] = config[ATTR_CONFIGURED_ADAPTERS]
self.async_configure() self.async_configure()
await self._async_save() await self._async_save()