Skip to content

Commit

Permalink
chore: Remove remaining references (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
lev-i authored Aug 23, 2022
1 parent e248e9d commit a44d52f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
messages_to_send = 10


class Wizard(object):
class Fruit(object):
def __init__(self, first_name, last_name, dict_of_stuff):
self.first_name = first_name
self.last_name = last_name
Expand All @@ -34,9 +34,9 @@ async def main():
symmetric_key=symmetric_key,
)

properties = {"House": "Gryffindor", "Muggle-Born": "False"}
wizard_a = Wizard("Harry", "Potter", properties)
provisioning_device_client.provisioning_payload = wizard_a
properties = {"Type": "Apple", "Sweet": "True"}
fruit_a = Fruit("McIntosh", "Red", properties)
provisioning_device_client.provisioning_payload = fruit_a
registration_result = await provisioning_device_client.register()

print("The complete registration result is")
Expand Down
8 changes: 4 additions & 4 deletions samples/sync-samples/provision_symmetric_key_with_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import time


class Wizard(object):
class Fruit(object):
def __init__(self, first_name, last_name, dict_of_stuff):
self.first_name = first_name
self.last_name = last_name
Expand All @@ -29,10 +29,10 @@ def __init__(self, first_name, last_name, dict_of_stuff):
symmetric_key=symmetric_key,
)

properties = {"House": "Gryffindor", "Muggle-Born": "False"}
wizard_a = Wizard("Harry", "Potter", properties)
properties = {"Type": "Apple", "Sweet": "True"}
fruit_a = Fruit("McIntosh", "Red", properties)

provisioning_device_client.provisioning_payload = wizard_a
provisioning_device_client.provisioning_payload = fruit_a
registration_result = provisioning_device_client.register()
# The result can be directly printed to view the important details.
print(registration_result)
Expand Down

0 comments on commit a44d52f

Please sign in to comment.