Fix typo in arest sensor (#34833)

This commit is contained in:
Brendon Go 2020-04-28 17:25:32 -07:00 committed by GitHub
parent 79c3148fc0
commit 3debb7cdf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ class ArestData:
try: try:
if str(self._pin[0]) == "A": if str(self._pin[0]) == "A":
response = requests.get( response = requests.get(
f"{self._resource,}/analog/{self._pin[1:]}", timeout=10 f"{self._resource}/analog/{self._pin[1:]}", timeout=10
) )
self.data = {"value": response.json()["return_value"]} self.data = {"value": response.json()["return_value"]}
except TypeError: except TypeError: