Smart Meter Texas integration (#37966)
* Run scaffold script * Update version * Bump version * Initial commit * Move meter and ESIID to device attributes * Update internal to hourly due to api limit * Format with Black * Fix typo * Update tests * Update description * Disable Pylint error * Don't commit translations * Remove meter number from sensor name * Allow multiple meters per account * Move data updates to a DataUpdateCoordinator * Use setdefault to setup the component * Move strings to const.py * Fix tests * Remove meter last updated attribute * Bump smart-meter-texas version * Fix logger call Co-authored-by: J. Nick Koston <nick@koston.org> * Remove unneeded manifest keys Co-authored-by: J. Nick Koston <nick@koston.org> * Remove icon property Co-authored-by: J. Nick Koston <nick@koston.org> * Handle instance where user already setup an account Co-authored-by: J. Nick Koston <nick@koston.org> * Remove icon constant * Fix indentation * Handle config flow errors better * Use ESIID + meter number as unique ID for sensor * Update config flow tests to reach 100% coverage * Avoid reading meters on startup Cherrypick @bdraco's suggestion * Run scaffold script * Update version * Bump version * Initial commit * Move meter and ESIID to device attributes * Update internal to hourly due to api limit * Format with Black * Fix typo * Update tests * Update description * Disable Pylint error * Don't commit translations * Remove meter number from sensor name * Allow multiple meters per account * Move data updates to a DataUpdateCoordinator * Use setdefault to setup the component * Move strings to const.py * Fix tests * Remove meter last updated attribute * Bump smart-meter-texas version * Fix logger call Co-authored-by: J. Nick Koston <nick@koston.org> * Remove unneeded manifest keys Co-authored-by: J. Nick Koston <nick@koston.org> * Remove icon property Co-authored-by: J. Nick Koston <nick@koston.org> * Handle instance where user already setup an account Co-authored-by: J. Nick Koston <nick@koston.org> * Remove icon constant * Fix indentation * Handle config flow errors better * Use ESIID + meter number as unique ID for sensor * Update config flow tests to reach 100% coverage * Remove unnecessary try/except block This checks for the same exception just prior in execution on L51. * Remove unused return values * Add tests * Improve tests and coverage * Use more pythonic control flow * Remove all uses of hass.data Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
1 parent
e626937147
commit
bb164bb32c
17 files changed
+780
No files matched your search
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"data": {
|
||||
"odrstatus": "COMPLETED",
|
||||
"odrread": "9751.212",
|
||||
"odrusage": "43.826",
|
||||
"odrdate": "08/15/2020 14:07:40",
|
||||
"responseMessage": "SUCCESS"
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"customer": "X",
|
||||
"email": "Y",
|
||||
"description": "123 Main St",
|
||||
"address": "123 MAIN ST",
|
||||
"city": "DALLAS",
|
||||
"state": "TX",
|
||||
"zip": "75001-0.00",
|
||||
"esiid": "12345678901234567",
|
||||
"meterNumber": "123456789",
|
||||
"meterMultiplier": 1,
|
||||
"fullAddress": "123 MAIN ST, DALLAS, TX, 75001-0.00",
|
||||
"errmsg": "Success",
|
||||
"recordStatus": "ESIID-RECORD-EXISTS",
|
||||
"statusIndicator": true,
|
||||
"dunsNumber": "NO_DUNS"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user