mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 08:59:57 +00:00
Fix importing blueprints (#71365)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
This commit is contained in:
@@ -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) == {
|
||||
|
||||
Reference in New Issue
Block a user