Remove None from dict.get(key, None) (#33794)
This commit is contained in:
1 parent
d54ee77375
commit
46bbe816f6
45 files changed
+104
-110
No files matched your search
@@ -30,7 +30,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up PwrCtrl devices/switches."""
|
||||
host = config.get(CONF_HOST, None)
|
||||
host = config.get(CONF_HOST)
|
||||
username = config.get(CONF_USERNAME)
|
||||
password = config.get(CONF_PASSWORD)
|
||||
port_recv = config.get(CONF_PORT_RECV)
|
||||
|
||||
Reference in new issue
Block a user