Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
bpaulin committed Apr 26, 2019
1 parent f29c170 commit f2fa91a
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 588 deletions.
13 changes: 0 additions & 13 deletions AUTHORS.rst

This file was deleted.

128 changes: 0 additions & 128 deletions CONTRIBUTING.rst

This file was deleted.

File renamed without changes.
12 changes: 1 addition & 11 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
include HISTORY.md
88 changes: 0 additions & 88 deletions Makefile

This file was deleted.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# brownpaperbag

[![image](https://img.shields.io/pypi/v/brownpaperbag.svg)](https://pypi.python.org/pypi/brownpaperbag)

[![image](https://img.shields.io/travis/bpaulin/brownpaperbag.svg)](https://travis-ci.org/bpaulin/brownpaperbag)

[![Updates](https://pyup.io/repos/github/bpaulin/brownpaperbag/shield.svg)](https://pyup.io/repos/github/bpaulin/brownpaperbag/)

But you try and tell the young people today that...

- Free software: MIT license

## Features

- TODO
41 changes: 0 additions & 41 deletions README.rst

This file was deleted.

7 changes: 4 additions & 3 deletions brownpaperbag/bpbgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async def _readuntil(self, separator):
return response

async def readevent(self, separator="##"):
"""Listen to gateway events."""
data = await self._reader.readuntil(separator.encode())
response = data.decode()
self.logger.debug("received: " + response)
Expand Down Expand Up @@ -153,17 +154,17 @@ async def send_list(self, who):
return hitems

async def get_light_ids(self):
"""return list of all lights ids"""
"""Return list of all lights ids."""
self.logger.info("polling lights")
return await self.send_list("1")

async def get_cover_ids(self):
"""return list of all cover ids"""
"""Return list of all cover ids."""
self.logger.info("polling covers")
return await self.send_list("2")

async def get_energy_ids(self):
"""return list of all cover ids"""
"""Return list of all cover ids."""
self.logger.info("polling covers")
return await self.send_list("18")

Expand Down
1 change: 1 addition & 0 deletions brownpaperbag/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def raw(ctx, command):
@click.argument("id")
@click.pass_context
def light(ctx, operation, id):
"""Interact with a light."""
gate = ctx.obj["GATE"]
loop = asyncio.get_event_loop()
try:
Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docs/authors.rst

This file was deleted.

Loading

0 comments on commit f2fa91a

Please sign in to comment.