Skip to content

Commit d886eae

Browse files
johnluetkefabaff
authored andcommitted
Adds '=' for api_token param (#3)
1 parent a7ef5df commit d886eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hole/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def enable(self):
6969
if self.api_token is None:
7070
_LOGGER.error("You need to supply an api_token to use this")
7171
return
72-
params = "enable=True&auth{}".format(self.api_token)
72+
params = "enable=True&auth={}".format(self.api_token)
7373
try:
7474
async with async_timeout.timeout(5, loop=self._loop):
7575
response = await self._session.get(self.base_url,
@@ -91,7 +91,7 @@ async def disable(self, duration=True):
9191
if self.api_token is None:
9292
_LOGGER.error("You need to supply an api_token to use this")
9393
return
94-
params = "disable={}&auth{}".format(duration, self.api_token)
94+
params = "disable={}&auth={}".format(duration, self.api_token)
9595
try:
9696
async with async_timeout.timeout(5, loop=self._loop):
9797
response = await self._session.get(self.base_url,

0 commit comments

Comments
 (0)