Skip to content

Commit

Permalink
admin.keepalive 001 -> admin.keep.alive 000
Browse files Browse the repository at this point in the history
As this is the first verion used. And the pattern is to match
AdminKeepAlive (it isn't Admin.Keepalive)
  • Loading branch information
jessicamillar committed Jan 1, 2025
1 parent f8d5b8b commit 7d322ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gw_spaceheat/named_types/admin_keep_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

class AdminKeepAlive(BaseModel):
AdminTimeoutSeconds: Optional[int] = None
TypeName: Literal["admin.keepalive"] = "admin.keepalive"
Version: Literal["001"] = "001"
TypeName: Literal["admin.keep.alive"] = "admin.keep.alive"
Version: Literal["000"] = "000"
4 changes: 2 additions & 2 deletions tests/named_types/test_admin_keep_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

def test_admin_keep_alive_generated() -> None:
d = {
"TypeName": "admin.keepalive",
"Version": "001",
"TypeName": "admin.keep.alive",
"Version": "000",
}

d2 = AdminKeepAlive.model_validate(d).model_dump(exclude_none=True)
Expand Down

0 comments on commit 7d322ac

Please sign in to comment.