Skip to content

Commit

Permalink
Merge pull request #72 from claudegel/swing
Browse files Browse the repository at this point in the history
Fix Swing mode bug
  • Loading branch information
claudegel authored Dec 9, 2024
2 parents 047d122 + 6bb408a commit e98d954
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sinope": {
"version": "1.7.0",
"version": "1.7.1",
"local_location": "/custom_components/sinope/__init__.py",
"remote_location": "https://github.com/claudegel/sinope-gt125/tree/master/custom_components/__init__.py",
"visit_repo": "https://github.com/claudegel/sinope-gt125",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/sinope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

#REQUIREMENTS = ['PY_Sinope==0.1.7']
REQUIREMENTS = ['crc8==0.1.0']
VERSION = '1.7.0'
VERSION = '1.7.1'

DATA_DOMAIN = 'data_' + DOMAIN

Expand Down
20 changes: 20 additions & 0 deletions custom_components/sinope/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,26 @@ def is_on(self):
return True
return False

@property
def swing_mode(self) -> str | None:
"""Return the fan vertical swing setting."""
return None

@property
def swing_modes(self) -> list[str] | None:
"""Return availables vertical swing modes."""
return None

@property
def swing_horizontal_mode(self) -> str | None:
"""Return the fan swing setting."""
return None

@property
def swing_horizontal_modes(self) -> list[str] | None:
"""Return available horizontal swing modes"""
return None

def turn_on(self):
"""Turn the thermostat to HVACMode.heat."""
self._client.set_mode(self._server, self._id, self._type, SINOPE_MODE_AUTO)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/sinope/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"dependencies": [],
"codeowners": ["@claudegel"],
"requirements": ["crc8==0.1.0"],
"version": "1.7.0"
"version": "1.7.1"
}

0 comments on commit e98d954

Please sign in to comment.