mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 10:16:02 +01:00
commit
9747811b82
4
.github/actions/build-image/action.yaml
vendored
4
.github/actions/build-image/action.yaml
vendored
@ -46,7 +46,7 @@ runs:
|
|||||||
|
|
||||||
- name: Build and push to ghcr by digest
|
- name: Build and push to ghcr by digest
|
||||||
id: build-ghcr
|
id: build-ghcr
|
||||||
uses: docker/build-push-action@v5.4.0
|
uses: docker/build-push-action@v6.0.1
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile
|
file: ./docker/Dockerfile
|
||||||
@ -69,7 +69,7 @@ runs:
|
|||||||
|
|
||||||
- name: Build and push to dockerhub by digest
|
- name: Build and push to dockerhub by digest
|
||||||
id: build-dockerhub
|
id: build-dockerhub
|
||||||
uses: docker/build-push-action@v5.4.0
|
uses: docker/build-push-action@v6.0.1
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile
|
file: ./docker/Dockerfile
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -65,7 +65,7 @@ jobs:
|
|||||||
pip3 install build
|
pip3 install build
|
||||||
python3 -m build
|
python3 -m build
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: pypa/gh-action-pypi-publish@v1.8.14
|
uses: pypa/gh-action-pypi-publish@v1.9.0
|
||||||
|
|
||||||
deploy-docker:
|
deploy-docker:
|
||||||
name: Build ESPHome ${{ matrix.platform }}
|
name: Build ESPHome ${{ matrix.platform }}
|
||||||
|
@ -19,7 +19,12 @@ IPAddress = network_ns.class_("IPAddress")
|
|||||||
|
|
||||||
CONFIG_SCHEMA = cv.Schema(
|
CONFIG_SCHEMA = cv.Schema(
|
||||||
{
|
{
|
||||||
cv.SplitDefault(CONF_ENABLE_IPV6): cv.All(
|
cv.SplitDefault(
|
||||||
|
CONF_ENABLE_IPV6,
|
||||||
|
esp8266=False,
|
||||||
|
esp32=False,
|
||||||
|
rp2040=False,
|
||||||
|
): cv.All(
|
||||||
cv.boolean, cv.only_on([PLATFORM_ESP32, PLATFORM_ESP8266, PLATFORM_RP2040])
|
cv.boolean, cv.only_on([PLATFORM_ESP32, PLATFORM_ESP8266, PLATFORM_RP2040])
|
||||||
),
|
),
|
||||||
cv.Optional(CONF_MIN_IPV6_ADDR_COUNT, default=0): cv.positive_int,
|
cv.Optional(CONF_MIN_IPV6_ADDR_COUNT, default=0): cv.positive_int,
|
||||||
@ -28,18 +33,17 @@ CONFIG_SCHEMA = cv.Schema(
|
|||||||
|
|
||||||
|
|
||||||
async def to_code(config):
|
async def to_code(config):
|
||||||
if CONF_ENABLE_IPV6 in config:
|
if (enable_ipv6 := config.get(CONF_ENABLE_IPV6, None)) is not None:
|
||||||
cg.add_define("USE_NETWORK_IPV6", config[CONF_ENABLE_IPV6])
|
cg.add_define("USE_NETWORK_IPV6", enable_ipv6)
|
||||||
cg.add_define(
|
if enable_ipv6:
|
||||||
"USE_NETWORK_MIN_IPV6_ADDR_COUNT", config[CONF_MIN_IPV6_ADDR_COUNT]
|
cg.add_define(
|
||||||
)
|
"USE_NETWORK_MIN_IPV6_ADDR_COUNT", config[CONF_MIN_IPV6_ADDR_COUNT]
|
||||||
if CORE.using_esp_idf:
|
|
||||||
add_idf_sdkconfig_option("CONFIG_LWIP_IPV6", config[CONF_ENABLE_IPV6])
|
|
||||||
add_idf_sdkconfig_option(
|
|
||||||
"CONFIG_LWIP_IPV6_AUTOCONFIG", config[CONF_ENABLE_IPV6]
|
|
||||||
)
|
)
|
||||||
|
if CORE.using_esp_idf:
|
||||||
|
add_idf_sdkconfig_option("CONFIG_LWIP_IPV6", enable_ipv6)
|
||||||
|
add_idf_sdkconfig_option("CONFIG_LWIP_IPV6_AUTOCONFIG", enable_ipv6)
|
||||||
else:
|
else:
|
||||||
if config[CONF_ENABLE_IPV6]:
|
if enable_ipv6:
|
||||||
cg.add_build_flag("-DCONFIG_LWIP_IPV6")
|
cg.add_build_flag("-DCONFIG_LWIP_IPV6")
|
||||||
cg.add_build_flag("-DCONFIG_LWIP_IPV6_AUTOCONFIG")
|
cg.add_build_flag("-DCONFIG_LWIP_IPV6_AUTOCONFIG")
|
||||||
if CORE.is_rp2040:
|
if CORE.is_rp2040:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2024.6.0b4"
|
__version__ = "2024.6.0b5"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
VALID_SUBSTITUTIONS_CHARACTERS = (
|
VALID_SUBSTITUTIONS_CHARACTERS = (
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "false"
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: MySSID
|
ssid: MySSID
|
||||||
password: password1
|
password: password1
|
||||||
|
|
||||||
network:
|
network:
|
||||||
enable_ipv6: true
|
enable_ipv6: ${network_enable_ipv6}
|
||||||
|
4
tests/components/network/test-ipv6.esp32-ard.yaml
Normal file
4
tests/components/network/test-ipv6.esp32-ard.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "true"
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
4
tests/components/network/test-ipv6.esp32-c3-ard.yaml
Normal file
4
tests/components/network/test-ipv6.esp32-c3-ard.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "true"
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
4
tests/components/network/test-ipv6.esp32-c3-idf.yaml
Normal file
4
tests/components/network/test-ipv6.esp32-c3-idf.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "true"
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
4
tests/components/network/test-ipv6.esp32-idf.yaml
Normal file
4
tests/components/network/test-ipv6.esp32-idf.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "true"
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
4
tests/components/network/test-ipv6.esp8266.yaml
Normal file
4
tests/components/network/test-ipv6.esp8266.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "true"
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
4
tests/components/network/test-ipv6.rp2040.yaml
Normal file
4
tests/components/network/test-ipv6.rp2040.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
network_enable_ipv6: "true"
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
1
tests/components/network/test.host.yaml
Normal file
1
tests/components/network/test.host.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
network:
|
Loading…
Reference in New Issue
Block a user