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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Intergas InComfort Lan2RF gateway #23736

Merged
merged 40 commits into from May 7, 2019
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d98ef86
fixed __init__.py
zxdavb Apr 29, 2019
21bacd9
add sensors
zxdavb Apr 30, 2019
efb697f
switch to parent-child architecture
zxdavb Apr 30, 2019
1f5ceec
make binary_sensor the parent
zxdavb May 1, 2019
acf823a
revert parent - to water_heater
zxdavb May 1, 2019
9ee6a78
first working version
zxdavb May 1, 2019
8f33f91
working, delinted (except TODO)
zxdavb May 1, 2019
045cd30
update to latest client library
zxdavb May 1, 2019
590c53f
remove debug code
zxdavb May 1, 2019
5f68d26
delint
zxdavb May 1, 2019
b22a8a3
Merge remote-tracking branch 'upstream/dev' into add_intergas_intouch
zxdavb May 1, 2019
521f0f2
tweak device_state_attributes
zxdavb May 1, 2019
c0adc37
tweak device_state_attrbutes
zxdavb May 1, 2019
97fc989
minor tweaks
zxdavb May 1, 2019
40a1cef
bump client library for bugfix
zxdavb May 1, 2019
dc6de80
improve state attributes for pumping
zxdavb May 1, 2019
6304809
update .coverage
zxdavb May 1, 2019
d1845a1
bugfix - binary sensors not updating
zxdavb May 1, 2019
cfc2827
rename to incomfort from intouch
zxdavb May 2, 2019
691a4f5
fix coveragerc regression
zxdavb May 6, 2019
deaf2b0
Merge remote-tracking branch 'upstream/dev' into add_intergas_intouch
zxdavb May 6, 2019
c21f080
Merge remote-tracking branch 'upstream/dev' into add_intergas_intouch
zxdavb May 6, 2019
72c0532
bump client (bugfix for /protected URL)
zxdavb May 6, 2019
228dc67
bump client (bugfix for /protected URL) 2
zxdavb May 7, 2019
ac1e428
bump client
zxdavb May 7, 2019
2fac73e
remove debug code
zxdavb May 7, 2019
5a380a2
ready for PR
zxdavb May 7, 2019
afcd0de
fix regression
zxdavb May 7, 2019
3dd5391
use xx._boiler instead of xx._objref
zxdavb May 7, 2019
e9eefc2
improve current_temperature and delint
zxdavb May 7, 2019
5978615
use current_operation instead of state
zxdavb May 7, 2019
f7ab847
refactor vol.Schema
zxdavb May 7, 2019
59ef9f4
remove unneeded instance attribute
zxdavb May 7, 2019
ec43141
remove unneeded instance attribute 2
zxdavb May 7, 2019
3e4d6ab
refactor device_state_attributes
zxdavb May 7, 2019
97786c3
change 'boiler' to 'heater'
zxdavb May 7, 2019
79212f5
change 'boiler' to 'heater' 2
zxdavb May 7, 2019
7607be9
correct a typo
zxdavb May 7, 2019
05388b7
bugfix: add missing comma
zxdavb May 7, 2019
895ddd3
small tidy-up
zxdavb May 7, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

improve current_temperature and delint

  • Loading branch information...
zxdavb committed May 7, 2019
commit e9eefc2a65e889458134116feb5e3f1159dd32f1
@@ -47,7 +47,7 @@

except AssertionError: # assert response.status == HTTP_OK
_LOGGER.warning(
"setup(): Failed, check your configuration.",
"Setup failed, check your configuration.",
exc_info=True)
return False

@@ -14,6 +14,8 @@
INCOMFORT_MAX_TEMP = 80.0
INCOMFORT_MIN_TEMP = 30.0

BOILER_NAME = 'Boiler'


async def async_setup_platform(hass, hass_config, async_add_entities,
discovery_info=None):
@@ -32,7 +34,7 @@ def __init__(self, client, boiler):
"""Initialize the water_heater device."""
self._client = client
self._boiler = boiler
self._name = 'Boiler'
self._name = BOILER_NAME

@property
def name(self):
@@ -51,7 +53,9 @@ def device_state_attributes(self):
@property
def current_temperature(self):
"""Return the current temperature."""
return self._boiler.heater_temp # or: self._boiler.tap_temp?
if self._boiler.is_tapping:
return self._boiler.tap_temp
return self._boiler.heater_temp

@property
def min_temp(self):
@@ -81,11 +85,6 @@ def state(self):

return self._boiler.display_text

@property
def should_poll(self) -> bool:
"""Return True as this device should always be polled."""
return True

async def async_update(self):
"""Get the latest state data from the gateway."""
try:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.