Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/switch/wemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def current_power_w(self):
def today_energy_kwh(self):
"""Today total energy usage in kWh."""
if self.insight_params:
return convert(self.insight_params['todaymw'], float, 0.0) / 1000.0
return convert(self.insight_params['todaymw'], float, 0.0) / 1000000.0

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)


@property
def detail_state(self):
Expand Down