1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Introduce new async-def coroutine syntax (#1657)

This commit is contained in:
Otto Winter
2021-05-17 07:14:15 +02:00
committed by GitHub
parent 95ed3e9d46
commit d4686c0fb1
10 changed files with 391 additions and 238 deletions

View File

@@ -490,11 +490,15 @@ class TestEsphomeCore:
def test_reset(self, target):
"""Call reset on target and compare to new instance"""
other = core.EsphomeCore()
other = core.EsphomeCore().__dict__
target.reset()
t = target.__dict__
# ignore event loop
del other["event_loop"]
del t["event_loop"]
assert target.__dict__ == other.__dict__
assert t == other
def test_address__none(self, target):
target.config = {}