mirror of
https://github.com/esphome/esphome.git
synced 2025-10-23 20:23:50 +01:00
[openthread] Backport address resolution support to prevent OTA crash
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
committed by
J. Nick Koston
parent
05844afe97
commit
f9e53453f2
@@ -570,6 +570,13 @@ 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] = {}
|
||||
|
||||
assert target.address == "test-device.local"
|
||||
|
||||
def test_is_esp32(self, target):
|
||||
target.data[const.KEY_CORE] = {const.KEY_TARGET_PLATFORM: "esp32"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user