Skip to content

Commit e98d954

Browse files
authored
Merge pull request #72 from claudegel/swing
Fix Swing mode bug
2 parents 047d122 + 6bb408a commit e98d954

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

custom_components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sinope": {
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"local_location": "/custom_components/sinope/__init__.py",
55
"remote_location": "https://github.com/claudegel/sinope-gt125/tree/master/custom_components/__init__.py",
66
"visit_repo": "https://github.com/claudegel/sinope-gt125",

custom_components/sinope/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
#REQUIREMENTS = ['PY_Sinope==0.1.7']
4545
REQUIREMENTS = ['crc8==0.1.0']
46-
VERSION = '1.7.0'
46+
VERSION = '1.7.1'
4747

4848
DATA_DOMAIN = 'data_' + DOMAIN
4949

custom_components/sinope/climate.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,26 @@ def is_on(self):
629629
return True
630630
return False
631631

632+
@property
633+
def swing_mode(self) -> str | None:
634+
"""Return the fan vertical swing setting."""
635+
return None
636+
637+
@property
638+
def swing_modes(self) -> list[str] | None:
639+
"""Return availables vertical swing modes."""
640+
return None
641+
642+
@property
643+
def swing_horizontal_mode(self) -> str | None:
644+
"""Return the fan swing setting."""
645+
return None
646+
647+
@property
648+
def swing_horizontal_modes(self) -> list[str] | None:
649+
"""Return available horizontal swing modes"""
650+
return None
651+
632652
def turn_on(self):
633653
"""Turn the thermostat to HVACMode.heat."""
634654
self._client.set_mode(self._server, self._id, self._type, SINOPE_MODE_AUTO)

custom_components/sinope/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"dependencies": [],
66
"codeowners": ["@claudegel"],
77
"requirements": ["crc8==0.1.0"],
8-
"version": "1.7.0"
8+
"version": "1.7.1"
99
}

0 commit comments

Comments
 (0)