mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00

* squash DNS IP enable port * linting * fix config entries in tests. * fix more config entries * fix parameter order * Add defaults for legacy config entries * test legacy config are not broken * test driven migration * define versions for future proofing * remove defaults as should be covered by migrations in the future * adds config migration * spacing * Review: remove unnecessary statements Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Apply suggestions from code review Co-authored-by: G Johansson <goran.johansson@shiftit.se> * make default ports the same * test migration from future error * linting * Small tweaks --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
22 lines
491 B
Python
22 lines
491 B
Python
"""Constants for dnsip integration."""
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "dnsip"
|
|
PLATFORMS = [Platform.SENSOR]
|
|
|
|
CONF_HOSTNAME = "hostname"
|
|
CONF_RESOLVER = "resolver"
|
|
CONF_RESOLVER_IPV6 = "resolver_ipv6"
|
|
CONF_PORT_IPV6 = "port_ipv6"
|
|
CONF_IPV4 = "ipv4"
|
|
CONF_IPV6 = "ipv6"
|
|
CONF_IPV6_V4 = "ipv6_v4"
|
|
|
|
DEFAULT_HOSTNAME = "myip.opendns.com"
|
|
DEFAULT_IPV6 = False
|
|
DEFAULT_NAME = "myip"
|
|
DEFAULT_RESOLVER = "208.67.222.222"
|
|
DEFAULT_PORT = 53
|
|
DEFAULT_RESOLVER_IPV6 = "2620:119:53::53"
|