Skip to content

Commit

Permalink
fixes for Python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yosuke committed Jul 29, 2023
1 parent 2a21e17 commit ddbb76e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions switchbot_ros/src/switchbot_ros/switchbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, token, secret="secret_none"):
self.update_device_list()
self.update_scene_list()

def make_sign(self, token: str, secret: str):
def make_sign(self, token, secret):

nonce = uuid.uuid4()
t = int(round(time.time() * 1000))
Expand All @@ -45,7 +45,7 @@ def make_sign(self, token: str, secret: str):

return sign, str(t), nonce

def make_request_header(self, token: str, secret: str):
def make_request_header(self, token, secret):
sign,t,nonce = self.make_sign(token, secret)
headers={
"Authorization": token,
Expand Down

0 comments on commit ddbb76e

Please sign in to comment.