Fix static_ip for ethernet

This commit is contained in:
Jimmy Hedman 2024-09-02 21:15:07 +02:00
parent 563e8b1379
commit b3b106f9b3
No known key found for this signature in database

View file

@ -203,11 +203,11 @@ FINAL_VALIDATE_SCHEMA = _final_validate
def manual_ip(config):
return cg.StructInitializer(
ManualIP,
("static_ip", IPAddress(config[CONF_STATIC_IP].args)),
("gateway", IPAddress(config[CONF_GATEWAY].args)),
("subnet", IPAddress(config[CONF_SUBNET].args)),
("dns1", IPAddress(config[CONF_DNS1].args)),
("dns2", IPAddress(config[CONF_DNS2].args)),
("static_ip", IPAddress(str(config[CONF_STATIC_IP]))),
("gateway", IPAddress(str(config[CONF_GATEWAY]))),
("subnet", IPAddress(str(config[CONF_SUBNET]))),
("dns1", IPAddress(str(config[CONF_DNS1]))),
("dns2", IPAddress(str(config[CONF_DNS2]))),
)