Skip to content

Commit

Permalink
Fixed the wrong variable name issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
smartechru committed Feb 4, 2021
1 parent 3cc66c9 commit bb5c24e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/n3rgy/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "n3rgy",
"version": "1.0.3",
"name": "n3rgy data",
"version": "1.0.6",
"name": "Smart Energy",
"documentation": "https://github.com/smartechru/n3rgy",
"dependencies": [],
"config_flow": true,
Expand Down
4 changes: 2 additions & 2 deletions custom_components/n3rgy/sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Script file: sensor.py
Created on: Jan 29, 2021
Last modified on: Feb 3, 2021
Last modified on: Feb 4, 2021
Comments:
Support for n3rgy data sensor
Expand Down Expand Up @@ -144,7 +144,7 @@ def do_read_consumption(host, api_key, property_id, start_at, end_at):
raise ValueError("Invalid value for `start`, must conform to the pattern `YYYYMMDDHHmm`")

# end date/time validation
if not re.search(r'[0-9]{12}', start_at):
if not re.search(r'[0-9]{12}', end_at):
raise ValueError("Invalid value for `end`, must conform to the pattern `YYYYMMDDHHmm`")

# n3rgy data api request
Expand Down

0 comments on commit bb5c24e

Please sign in to comment.