Clean up access to config in various integrations v3 (#33842)
This commit is contained in:
parent
b46eee04e4
commit
21dfee831f
16 changed files with 52 additions and 52 deletions
|
@ -33,8 +33,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the Blockchain.com sensors."""
|
||||
|
||||
addresses = config.get(CONF_ADDRESSES)
|
||||
name = config.get(CONF_NAME)
|
||||
addresses = config[CONF_ADDRESSES]
|
||||
name = config[CONF_NAME]
|
||||
|
||||
for address in addresses:
|
||||
if not validate_address(address):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue