mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-03 18:47:40 +01:00
Add test for legacy UserService type_ conversion (#761)
This commit is contained in:
parent
f6eff1a205
commit
31c6e4abc6
@ -344,6 +344,9 @@ def test_user_service_conversion():
|
||||
assert UserService.from_dict({"args": [{"name": "arg", "type": 1}]}) == UserService(
|
||||
args=[UserServiceArg(name="arg", type=UserServiceArgType.INT)]
|
||||
)
|
||||
assert UserService.from_dict(
|
||||
{"args": [{"name": "arg", "type_": 1}]}
|
||||
) == UserService(args=[UserServiceArg(name="arg", type=UserServiceArgType.INT)])
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
Loading…
Reference in New Issue
Block a user