Fix Sleep lifecycle attribute error
Merge pull request #69 from soby/sleep_lifecycle

Fix Sleep lifecycle attribute error (fixes #68)