Enhance OxiAPI and Node classes with type hints and property updates

- Updated the `OxiAPI` class to check for `None` explicitly when setting authentication credentials.
- Added type hints to the `Node` class and introduced a TODO for future enhancements.
- Refactored properties in the `NodeView` class to include type hints and improved handling of optional data retrieval.
This commit is contained in:
IluaAir
2026-03-18 00:15:09 +03:00
parent 1d0f5ed685
commit a107662e99
4 changed files with 21 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ class Base(BaseModel):
class System(BaseModel):
"""
Requred
Required
"""
model: str
@@ -18,7 +18,7 @@ class System(BaseModel):
class Interfaces(Base):
"""
Requred
Required
"""
name: str = Field(alias="interface")