Skip to content

Commit

Permalink
Remove useless ping on mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
titilambert committed Aug 27, 2017
1 parent 0a15152 commit 48cf66d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
pip --version
pip install pip==9.0.1
pip install -r requirements.txt --upgrade
pip install -r test_requirements.txt --upgrade
pip install codeclimate-test-reporter
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ jinja2==2.9.6
paho-mqtt==1.3.0
python-etcd==0.4.5
setproctitle==1.1.10
-e git+https://github.com/TuxEatPi/python-aio-etcd.git#egg=aio_etcd
--exists-action s -e git+https://github.com/TuxEatPi/python-aio-etcd.git#egg=aio_etcd
7 changes: 0 additions & 7 deletions tuxeatpi_common/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ def run(self):
# start mqtt client
self.component._mqtt_client.run()
self.component._mqtt_sender.run()
# Send first alive request
# TODO Add state to alive request
now = time.time()
data = {"arguments": {"component_name": self.component.name, "date": now, "state": "INIT"}}
message = Message("global/alive", data)
self.logger.info("Send alive request")
self.component.publish(message)
# Load dialogs
if not self.skip_dialogs:
self.component.dialogs.load()
Expand Down

0 comments on commit 48cf66d

Please sign in to comment.