Fix importing blueprints (#71365)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
This commit is contained in:
parent
aadfcc9a6e
commit
353cc0b8c2
6 changed files with 58 additions and 12 deletions
|
@ -11,7 +11,7 @@ import pytest
|
|||
import voluptuous as vol
|
||||
|
||||
import homeassistant
|
||||
from homeassistant.helpers import config_validation as cv, template
|
||||
from homeassistant.helpers import config_validation as cv, selector, template
|
||||
|
||||
|
||||
def test_boolean():
|
||||
|
@ -720,6 +720,17 @@ def test_string_in_serializer():
|
|||
}
|
||||
|
||||
|
||||
def test_selector_in_serializer():
|
||||
"""Test selector with custom_serializer."""
|
||||
assert cv.custom_serializer(selector.selector({"text": {}})) == {
|
||||
"selector": {
|
||||
"text": {
|
||||
"multiline": False,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def test_positive_time_period_dict_in_serializer():
|
||||
"""Test positive_time_period_dict with custom_serializer."""
|
||||
assert cv.custom_serializer(cv.positive_time_period_dict) == {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue