diff --git a/aioesphomeapi/model.py b/aioesphomeapi/model.py index 1b8a84c..58484b8 100644 --- a/aioesphomeapi/model.py +++ b/aioesphomeapi/model.py @@ -639,6 +639,7 @@ class NumberState(EntityState): # ==================== DATETIME DATE ==================== + @_frozen_dataclass_decorator class DateInfo(EntityInfo): pass diff --git a/tests/test_client.py b/tests/test_client.py index 5cc5a1f..2c290e5 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -622,8 +622,14 @@ async def test_number_command( @pytest.mark.parametrize( "cmd, req", [ - (dict(key=1, year=2024, month=2, day=29), dict(key=1, year=2024, month=2, day=29)), - (dict(key=1, year=2000, month=6, day=10), dict(key=1, year=2000, month=6, day=10)), + ( + dict(key=1, year=2024, month=2, day=29), + dict(key=1, year=2024, month=2, day=29), + ), + ( + dict(key=1, year=2000, month=6, day=10), + dict(key=1, year=2000, month=6, day=10), + ), ], ) async def test_date_command(