Skip to content

Commit 775968f

Browse files
authored
Fix #208: give better example
1 parent 2552317 commit 775968f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ Now let's spawn a simple light bulb accessory as demonstration:
8282

8383
import os.path
8484

85-
from homekit import HomeKitServer
85+
from homekit import AccessoryServer
8686
from homekit.model import Accessory, LightBulbService
8787

8888

8989
if __name__ == '__main__':
9090
try:
91-
httpd = HomeKitServer(os.path.expanduser('~/.homekit/demoserver.json'))
91+
httpd = AccessoryServer(os.path.expanduser('~/.homekit/demoserver.json'))
9292

93-
accessory = Accessory('Licht')
93+
accessory = Accessory('test_light', 'homekit_python', 'Demoserver', '0001', '0.1')
9494
lightService = LightBulbService()
9595
accessory.services.append(lightService)
9696
httpd.accessories.add_accessory(accessory)

0 commit comments

Comments
 (0)