Skip to content

Commit

Permalink
Merge pull request #51 from claudegel/neviweb-to-ha
Browse files Browse the repository at this point in the history
Neviweb to ha fix
  • Loading branch information
claudegel authored Mar 20, 2022
2 parents cddf02f + aa75467 commit eaf10d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"neviweb": {
"version": "1.9.3",
"version": "1.9.4",
"local_location": "/custom_components/neviweb/__init__.py",
"remote_location": "https://github.com/claudegel/sinope-1/tree/master/custom_components/neviweb/__init__.py",
"visit_repo": "https://github.com/claudegel/sinope-1",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/neviweb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
)

#REQUIREMENTS = ['PY_Sinope==0.1.5']
VERSION = '1.9.3'
VERSION = '1.9.4'

_LOGGER = logging.getLogger(__name__)

Expand Down
12 changes: 6 additions & 6 deletions custom_components/neviweb/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,12 @@ def set_aux_cycle_length_service(service):
schema=SET_AUX_CYCLE_LENGTH_SCHEMA,
)

def neviweb_to_ha(self, value):
keys = [k for k, v in HA_TO_NEVIWEB_PERIOD.items() if v == value]
if keys:
return keys[0]
return None

class NeviwebThermostat(ClimateEntity):
"""Implementation of a Neviweb thermostat."""

Expand Down Expand Up @@ -978,9 +984,3 @@ def turn_aux_heat_off(self):
self._aux_heat = "off"
self._client.set_aux_heat(
self._id, "off", self._aux_cycle_length, self._is_floor)

def neviweb_to_ha(self, value):
keys = [k for k, v in HA_TO_NEVIWEB_PERIOD.items() if v == value]
if keys:
return keys[0]
return None
2 changes: 1 addition & 1 deletion custom_components/neviweb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"dependencies": [],
"codeowners": ["@claudegel"],
"requirements": [],
"version": "1.9.3"
"version": "1.9.4"
}

0 comments on commit eaf10d0

Please sign in to comment.