mirror of
https://github.com/esphome/esphome.git
synced 2025-10-27 13:13:50 +00:00
[openthread] Fix OTA by populating CORE.address with device's mDNS address (#11095)
Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
@@ -571,9 +571,11 @@ class TestEsphomeCore:
|
||||
assert target.address == "4.3.2.1"
|
||||
|
||||
def test_address__openthread(self, target):
|
||||
target.name = "test-device"
|
||||
target.config = {}
|
||||
target.config[const.CONF_OPENTHREAD] = {}
|
||||
target.config[const.CONF_OPENTHREAD] = {
|
||||
const.CONF_USE_ADDRESS: "test-device.local"
|
||||
}
|
||||
target.name = "test-device"
|
||||
|
||||
assert target.address == "test-device.local"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user