Skip to content

Added average temperature for the day before and the current period#6883

Merged
balloob merged 5 commits into
home-assistant:devfrom
diogos88:dev
Apr 6, 2017
Merged

Added average temperature for the day before and the current period#6883
balloob merged 5 commits into
home-assistant:devfrom
diogos88:dev

Conversation

@diogos88
Copy link
Copy Markdown
Contributor

@diogos88 diogos88 commented Apr 2, 2017

Changes:

  • Added yesterday_average_temperature
  • Added period_average_temperature

@mention-bot
Copy link
Copy Markdown

@diogos88, thanks for your PR! By analyzing the history of the files in this pull request, we identified @titilambert to be a potential reviewer.

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @diogos88,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

'yesterday_lower_price_consumption': ['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption': ['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature': ['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
'period_average_temperature': ['Period average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (98 > 79 characters)

'yesterday_total_consumption': ['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_lower_price_consumption': ['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption': ['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature': ['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (104 > 79 characters)

'period_higher_price_consumption': ['Period Higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_total_consumption': ['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_lower_price_consumption': ['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption': ['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (109 > 79 characters)

'period_lower_price_consumption': ['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_higher_price_consumption': ['Period Higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_total_consumption': ['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_lower_price_consumption': ['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (107 > 79 characters)

'period_total_consumption': ['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_lower_price_consumption': ['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_higher_price_consumption': ['Period Higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_total_consumption': ['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (95 > 79 characters)

'period_mean_daily_bill': ['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption': ['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_consumption': ['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_lower_price_consumption': ['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (101 > 79 characters)

'period_total_days': ['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill': ['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption': ['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_consumption': ['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (82 > 79 characters)

'period_length': ['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days': ['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill': ['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption': ['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (102 > 79 characters)

'period_total_bill': ['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length': ['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days': ['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill': ['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (90 > 79 characters)

['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_bill': ['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length': ['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days': ['Total number of days in this period', DAYS, 'mdi:calendar-today'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (93 > 79 characters)

'yesterday_average_temperature':
['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
'period_average_temperature':
['Period average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains tabs
indentation contains mixed spaces and tabs

['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature':
['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
'period_average_temperature':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains mixed spaces and tabs
trailing whitespace

'yesterday_higher_price_consumption':
['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature':
['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains tabs
indentation contains mixed spaces and tabs

['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption':
['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains mixed spaces and tabs
trailing whitespace

'yesterday_lower_price_consumption':
['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption':
['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains tabs
indentation contains mixed spaces and tabs

['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_lower_price_consumption':
['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_higher_price_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains mixed spaces and tabs
trailing whitespace

'period_total_consumption':
['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_lower_price_consumption':
['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains tabs
indentation contains mixed spaces and tabs

['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_consumption':
['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_lower_price_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains mixed spaces and tabs
trailing whitespace

'period_mean_daily_consumption':
['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_consumption':
['Total Consumption', KILOWATT_HOUR, 'mdi:flash'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains tabs
indentation contains mixed spaces and tabs

['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption':
['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation contains mixed spaces and tabs
trailing whitespace

['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature':
['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'],
'period_average_temperature':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption':
['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_average_temperature':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_lower_price_consumption':
['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Period Higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_total_consumption':
['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_lower_price_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_higher_price_consumption':
['Period Higher price consumption', KILOWATT_HOUR, 'mdi:flash'],
'yesterday_total_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill':
['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days':
['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length':
['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

'yesterday_higher_price_consumption':
'period_total_bill':
['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

'yesterday_lower_price_consumption': ['Yesterday lower price consumption',
KILOWATT_HOUR, 'mdi:flash'],
'yesterday_higher_price_consumption':
'period_total_bill':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

@diogos88 diogos88 closed this Apr 2, 2017
['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption':
['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'],
'period_total_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill':
['Period daily average bill', PRICE, 'mdi:square-inc-cash'],
'period_mean_daily_consumption':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days':
['Total number of days in this period', DAYS, 'mdi:calendar-today'],
'period_mean_daily_bill':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length':
['Current period length', DAYS, 'mdi:calendar-today'],
'period_total_days':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

KILOWATT_HOUR, 'mdi:flash'],
'period_total_bill':
['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

KILOWATT_HOUR, 'mdi:flash'],
'yesterday_lower_price_consumption': ['Yesterday lower price consumption',
KILOWATT_HOUR, 'mdi:flash'],
'period_total_bill':
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

@diogos88
Copy link
Copy Markdown
Contributor Author

diogos88 commented Apr 2, 2017

I don't see any trailing whitespace in the last push. What I am missing that houndci-bot see?

@titilambert
Copy link
Copy Markdown
Contributor

@diogos88 sometimes hound doesn't close its own comments

@fabaff
Copy link
Copy Markdown
Member

fabaff commented Apr 3, 2017

Docs PR: home-assistant/home-assistant.io#2370

BTW, the PR template helps to keep track...

@balloob balloob merged commit 2551bf8 into home-assistant:dev Apr 6, 2017
@fabaff fabaff mentioned this pull request Apr 6, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants