Skip to content

Commit

Permalink
Merge pull request #2 from bj00rn/chore/remove-service-limit
Browse files Browse the repository at this point in the history
remove limit argument
  • Loading branch information
bj00rn authored Jul 30, 2023
2 parents 238933e + 6eab59d commit 1b55d40
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 0 additions & 3 deletions custom_components/saleryd_hrv/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def set_hvac_mode(self, hvac_mode: HVACMode) -> None:
"set_cooling_mode",
{"value": self.hvac_modes.index(hvac_mode)},
blocking=True,
limit=10,
)
self.schedule_update_ha_state(force_refresh=True)

Expand Down Expand Up @@ -86,7 +85,6 @@ def set_preset_mode(self, preset_mode: str) -> None:
"set_temperature_mode",
{"value": self.preset_modes.index(preset_mode)},
blocking=True,
limit=10,
)
self.schedule_update_ha_state(force_refresh=True)

Expand All @@ -102,7 +100,6 @@ def set_fan_mode(self, fan_mode: str) -> None:
"set_ventilation_mode",
{"value": self.fan_modes.index(fan_mode)},
blocking=True,
limit=10,
)
self.schedule_update_ha_state(force_refresh=True)

Expand Down
12 changes: 6 additions & 6 deletions custom_components/saleryd_hrv/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"domain": "saleryd_hrv",
"name": "Saleryd HRV",
"documentation": "https://github.com/bj00rn/ha-saleryd-ftx",
"iot_class": "local_push",
"issue_tracker": "https://github.com/bj00rn/ha-saleryd-ftx",
"version": "2.1.0",
"config_flow": true,
"codeowners": [
"@bj00rn"
],
"config_flow": true,
"documentation": "https://github.com/bj00rn/ha-saleryd-ftx",
"iot_class": "local_push",
"issue_tracker": "https://github.com/bj00rn/ha-saleryd-ftx",
"requirements": [
"pysaleryd>=3.0.6"
]
],
"version": "3.0.0-alpha.1"
}
4 changes: 4 additions & 0 deletions custom_components/saleryd_hrv/services.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_fireplace_mode:
name: Set fireplace mode
description: Set fireplace mode on or off
fields:
value:
Expand All @@ -11,6 +12,7 @@ set_fireplace_mode:
max: 1
mode: slider
set_cooling_mode:
name: Set cooling mode
description: Set cooling mode on or off
fields:
value:
Expand All @@ -23,6 +25,7 @@ set_cooling_mode:
max: 1
mode: slider
set_ventilation_mode:
name: Set ventilation mode
description: Set ventilation mode
fields:
value:
Expand All @@ -35,6 +38,7 @@ set_ventilation_mode:
max: 2
mode: slider
set_temperature_mode:
name: Set temperature mode
description: Set temperature mode
fields:
value:
Expand Down
2 changes: 0 additions & 2 deletions custom_components/saleryd_hrv/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def turn_on(self, **kwargs) -> None:
self._service_turn_on,
{"value": self._state_when_on},
blocking=True,
limit=10,
)
self.schedule_update_ha_state(force_refresh=True)

Expand All @@ -55,7 +54,6 @@ def turn_off(self, **kwargs) -> None:
self._service_turn_off,
{"value": self._state_when_off},
blocking=True,
limit=10,
)
self.schedule_update_ha_state(force_refresh=True)

Expand Down

0 comments on commit 1b55d40

Please sign in to comment.