From 560cc65529842292853133d73019c9f50add7e55 Mon Sep 17 00:00:00 2001 From: danimtb Date: Mon, 15 Apr 2019 10:52:53 +0200 Subject: [PATCH] Reordered imports and added datetime --- dasshio/dasshio.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dasshio/dasshio.py b/dasshio/dasshio.py index 5a37031..57fa3f8 100644 --- a/dasshio/dasshio.py +++ b/dasshio/dasshio.py @@ -1,19 +1,21 @@ #!/usr/bin/env python3 +import datetime import json import logging import os +import re import requests -from scapy.all import sniff +import signal +import sys +import time + from scapy.all import ARP -from scapy.all import UDP -from scapy.all import IP from scapy.all import DHCP from scapy.all import Ether -import sys -import time -import signal -import re +from scapy.all import IP +from scapy.all import UDP +from scapy.all import sniff BASE_URL = os.environ.get("HA_BASE_URL") or "http://hassio/homeassistant"