whois domain lookup sensor (#10000)

* Init commit of new whois sensor

* Updated requirements

* Resolved updated showing expired, added expired attr

* Added missing attribute in init, added whois to coveragerc

* Various PR comment changes

- Now more resiliant to invalid hostnames
- Removed various assumed STATE_UNKOWN setting
- Upfront check for valid hostname preventing the sensor starting with dud
- Resolved unit of measurement Day, Days, None issue
- Datetime formatting now done to iso 8601 standard
- Removed all expired usage, not really that useful
- Unused hass assignment

* More PR comment resolutions

- Resolved the dilemma with hosts / single host per sensor. Now running
single domain per sensor.
- Renamed host(s) to domain

* Moved coveragerc sensor location

* Re-phrased the expiration_date warning

* Resolved assumed updated_date existence

* Resolved missing indent

* Resolved discover_info typo

* Update whois.py
This commit is contained in:
Adam Cooper 2017-10-24 08:34:06 +01:00 committed by Fabian Affolter
parent a4b0e8f897
commit 485e81db79
5 changed files with 144 additions and 0 deletions

View file

@ -78,6 +78,7 @@ TEST_REQUIREMENTS = (
'uvcclient',
'warrant',
'yahoo-finance',
'pythonwhois'
)
IGNORE_PACKAGES = (