Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ classifiers = [
dependencies = [
"PyYAML>=6.0,<7.0",
"zeroconf>=0.148",
"Deprecated>=1.3.1,<2.0",
]

[project.optional-dependencies]
Expand All @@ -32,7 +31,6 @@ dev = [
"pytest-cov==7.1.0",
"mypy==1.19.1",
"types-PyYAML==6.0.12.20250915",
"types-Deprecated==1.3.1.20260130",
"isort==8.0.1",
"flake8==7.3.0",
"flake8-isort==7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pyvlx/api/get_all_nodes_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def handle_frame(self, frame: FrameBase) -> bool:
if isinstance(frame, FrameGetAllNodesInformationFinishedNotification):
if self.number_of_nodes != len(self.notification_frames):
PYVLXLOG.warning(
"Number of received scenes does not match expected number"
"Number of received nodes does not match expected number"
)
self.success = True
return True
Expand Down
13 changes: 1 addition & 12 deletions src/pyvlx/api/get_state.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Module for retrieving gateway state from API."""
from typing import TYPE_CHECKING, Optional
from typing import TYPE_CHECKING

from pyvlx.const import GatewayState, GatewaySubState
from pyvlx.dataobjects import DtoState

from .api_event import ApiEvent
Expand Down Expand Up @@ -31,13 +30,3 @@ async def handle_frame(self, frame: FrameBase) -> bool:
def request_frame(self) -> FrameGetStateRequest:
"""Construct initiating frame."""
return FrameGetStateRequest()

@property
def gateway_state(self) -> Optional[GatewayState]:
"""Return Gateway State as human readable string. Deprecated."""
return self.state.gateway_state

@property
def gateway_sub_state(self) -> Optional[GatewaySubState]:
"""Return Gateway Sub State as human readable string. Deprecated."""
return self.state.gateway_sub_state
1 change: 0 additions & 1 deletion src/pyvlx/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ class WinkTime(Enum):
STOP = 0 # Stop wink.
BY_SECONDS = 1 # 1=Wink in 1 sec., 2= Wink in 2 sec. 253=Wink in 253 sec.
BY_MANUFACTURER = 254 # Manufacturer specific wink time.
BY_MANUFACTUERER = BY_MANUFACTURER # Backwards compatibility alias (deprecated).
FOREVER = 255 # Wink forever.


Expand Down
11 changes: 0 additions & 11 deletions src/pyvlx/opening_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from asyncio import Task
from typing import TYPE_CHECKING, Any, ClassVar, Optional

from deprecated import deprecated

from pyvlx.api.get_limitation import GetLimitation

from .api.command_send import CommandSend
Expand Down Expand Up @@ -336,15 +334,6 @@ def __str__(self) -> str:
f'serial_number="{self.serial_number}" position="{self.position}"/>'
)

@deprecated("Use 'get_limitation_min' instead.")
async def get_limitation(self) -> GetLimitation:
"""Request minimum limitation and return it as part of the GetLimitation object."""
get_limitation = GetLimitation(pyvlx=self.pyvlx, node_id=self.node_id)
await get_limitation.do_api_call()
if not get_limitation.success:
raise PyVLXException("Unable to send command")
return get_limitation


class Blind(OpeningDevice):
"""Blind objects."""
Expand Down
Loading