mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add current balance to hydroquebec sensor (#8138)
This commit is contained in:
parent
6398e92836
commit
f3945147a4
@ -21,7 +21,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['pyhydroquebec==1.1.0']
|
REQUIREMENTS = ['pyhydroquebec==1.2.0']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -36,6 +36,8 @@ REQUESTS_TIMEOUT = 15
|
|||||||
MIN_TIME_BETWEEN_UPDATES = timedelta(hours=1)
|
MIN_TIME_BETWEEN_UPDATES = timedelta(hours=1)
|
||||||
|
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
|
'balance':
|
||||||
|
['Balance', PRICE, 'mdi:square-inc-cash'],
|
||||||
'period_total_bill':
|
'period_total_bill':
|
||||||
['Current period bill', PRICE, 'mdi:square-inc-cash'],
|
['Current period bill', PRICE, 'mdi:square-inc-cash'],
|
||||||
'period_length':
|
'period_length':
|
||||||
|
@ -568,7 +568,7 @@ pyhik==0.1.2
|
|||||||
pyhomematic==0.1.28
|
pyhomematic==0.1.28
|
||||||
|
|
||||||
# homeassistant.components.sensor.hydroquebec
|
# homeassistant.components.sensor.hydroquebec
|
||||||
pyhydroquebec==1.1.0
|
pyhydroquebec==1.2.0
|
||||||
|
|
||||||
# homeassistant.components.device_tracker.icloud
|
# homeassistant.components.device_tracker.icloud
|
||||||
pyicloud==0.9.1
|
pyicloud==0.9.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user