Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump zwave-js-server-python to 0.37.0 #72395

Merged
merged 2 commits into from May 25, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions homeassistant/components/zwave_js/api.py
Expand Up @@ -114,8 +114,7 @@
# constants for inclusion
INCLUSION_STRATEGY = "inclusion_strategy"

# Remove type ignore when bumping library to 0.37.0
INCLUSION_STRATEGY_NOT_SMART_START: dict[ # type: ignore[misc]
INCLUSION_STRATEGY_NOT_SMART_START: dict[
int,
Literal[
InclusionStrategy.DEFAULT,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/zwave_js/climate.py
Expand Up @@ -238,7 +238,7 @@ def _current_mode_setpoint_enums(self) -> list[ThermostatSetpointType]:
if self._current_mode is None or self._current_mode.value is None:
# Thermostat(valve) with no support for setting a mode is considered heating-only
return [ThermostatSetpointType.HEATING]
return THERMOSTAT_MODE_SETPOINT_MAP.get(int(self._current_mode.value), []) # type: ignore[no-any-return]
return THERMOSTAT_MODE_SETPOINT_MAP.get(int(self._current_mode.value), [])

@property
def temperature_unit(self) -> str:
Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/zwave_js/device_action.py
Expand Up @@ -326,7 +326,9 @@ async def async_get_action_capabilities(
vol.Required(ATTR_COMMAND_CLASS): vol.In(
{
CommandClass(cc.id).value: cc.name
for cc in sorted(node.command_classes, key=lambda cc: cc.name) # type: ignore[no-any-return]
for cc in sorted(
node.command_classes, key=lambda cc: cc.name
)
}
),
vol.Required(ATTR_PROPERTY): cv.string,
Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/zwave_js/device_condition.py
Expand Up @@ -221,7 +221,9 @@ async def async_get_condition_capabilities(
vol.Required(ATTR_COMMAND_CLASS): vol.In(
{
CommandClass(cc.id).value: cc.name
for cc in sorted(node.command_classes, key=lambda cc: cc.name) # type: ignore[no-any-return]
for cc in sorted(
node.command_classes, key=lambda cc: cc.name
)
if cc.id != CommandClass.CONFIGURATION
}
),
Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/zwave_js/device_trigger.py
Expand Up @@ -534,7 +534,9 @@ async def async_get_trigger_capabilities(
vol.Required(ATTR_COMMAND_CLASS): vol.In(
{
CommandClass(cc.id).value: cc.name
for cc in sorted(node.command_classes, key=lambda cc: cc.name) # type: ignore[no-any-return]
for cc in sorted(
node.command_classes, key=lambda cc: cc.name
)
if cc.id != CommandClass.CONFIGURATION
}
),
Expand Down
Expand Up @@ -505,7 +505,7 @@ def resolve_data(
self, value: ZwaveValue
) -> dict[str, ZwaveConfigurationValue | None]:
"""Resolve helper class data for a discovered value."""
zwave_value = cast( # type: ignore[redundant-cast]
zwave_value = cast(
Union[ZwaveConfigurationValue, None],
self._get_value_from_id(value.node, self.configuration_option),
)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/zwave_js/manifest.json
Expand Up @@ -3,7 +3,7 @@
"name": "Z-Wave JS",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/zwave_js",
"requirements": ["zwave-js-server-python==0.36.1"],
"requirements": ["zwave-js-server-python==0.37.0"],
"codeowners": ["@home-assistant/z-wave"],
"dependencies": ["usb", "http", "websocket_api"],
"iot_class": "local_push",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -2528,7 +2528,7 @@ zigpy==0.45.1
zm-py==0.5.2

# homeassistant.components.zwave_js
zwave-js-server-python==0.36.1
zwave-js-server-python==0.37.0

# homeassistant.components.zwave_me
zwave_me_ws==0.2.4
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -1665,7 +1665,7 @@ zigpy-znp==0.7.0
zigpy==0.45.1

# homeassistant.components.zwave_js
zwave-js-server-python==0.36.1
zwave-js-server-python==0.37.0

# homeassistant.components.zwave_me
zwave_me_ws==0.2.4
Expand Up @@ -51,7 +51,14 @@
"index": 0,
"installerIcon": 1792,
"userIcon": 1792,
"commandClasses": []
"commandClasses": [
{
"id": 50,
"name": "Meter",
"version": 3,
"isSecure": false
}
]
}
],
"values": [
Expand Down
Expand Up @@ -126,7 +126,63 @@
"endpoints": [
{
"nodeId": 5,
"index": 0
"index": 0,
"commandClasses": [
{
"id": 67,
"name": "Thermostat Setpoint",
"version": 2,
"isSecure": false
},
{
"id": 70,
"name": "Climate Control Schedule",
"version": 1,
"isSecure": false
},
{
"id": 114,
"name": "Manufacturer Specific",
"version": 1,
"isSecure": false
},
{
"id": 117,
"name": "Protection",
"version": 2,
"isSecure": false
},
{
"id": 128,
"name": "Battery",
"version": 1,
"isSecure": false
},
{
"id": 129,
"name": "Clock",
"version": 1,
"isSecure": false
},
{
"id": 132,
"name": "Wake Up",
"version": 1,
"isSecure": false
},
{
"id": 134,
"name": "Version",
"version": 1,
"isSecure": false
},
{
"id": 143,
"name": "Multi Command",
"version": 1,
"isSecure": false
}
]
}
],
"values": [
Expand Down