Remove unnecessary string literal concatenations (#30360)
This commit is contained in:
1 parent
cac750066a
commit
e6388e186c
183 files changed
+362
-393
No files matched your search
@@ -66,9 +66,7 @@ class OhmconnectSensor(Entity):
|
||||
def update(self):
|
||||
"""Get the latest data from OhmConnect."""
|
||||
try:
|
||||
url = ("https://login.ohmconnect.com" "/verify-ohm-hour/{}").format(
|
||||
self._ohmid
|
||||
)
|
||||
url = "https://login.ohmconnect.com/verify-ohm-hour/{}".format(self._ohmid)
|
||||
response = requests.get(url, timeout=10)
|
||||
root = ET.fromstring(response.text)
|
||||
|
||||
|
||||
Reference in new issue
Block a user