examples: fix rpc examples. __init__ method was wrongly named "__init" causing proxy and handler class to not be initialized.
This commit is contained in:
parent
79f1aa0e1b
commit
5a4df56836
@ -16,7 +16,7 @@ class Thermostat(Endpoint):
|
|||||||
def FQN(self):
|
def FQN(self):
|
||||||
return 'thermostat'
|
return 'thermostat'
|
||||||
|
|
||||||
def __init(self, initial_temperature):
|
def __init__(self, initial_temperature):
|
||||||
self._temperature = initial_temperature
|
self._temperature = initial_temperature
|
||||||
self._event = threading.Event()
|
self._event = threading.Event()
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class Thermostat(Endpoint):
|
|||||||
def FQN(self):
|
def FQN(self):
|
||||||
return 'thermostat'
|
return 'thermostat'
|
||||||
|
|
||||||
def __init(self, initial_temperature):
|
def __init__(self, initial_temperature):
|
||||||
self._temperature = initial_temperature
|
self._temperature = initial_temperature
|
||||||
self._event = threading.Event()
|
self._event = threading.Event()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user