core/homeassistant/components/fritzbox_callmonitor
guillempages 26e674b4c3 Resolve hosts for fritzbox_callmonitor (#28761)
* Resolve hosts for fritzbox_callmonitor

If the configuration supplied "host" is not an IP address, try resolving it

* always use gethostbyname

Instead of just checking whether it is an IP and if it isn't try to resolve; just resolve it; IPs will be returned unchanged, and hostnames will be resolved.

* Catch error if the hostname cannot be resolved

* Don't fallback to default host

If the hostname cannot be resolved; don't try to fallback; just print the error message.

* Fail setup if hostname cannot be resolved

If the hostname cannot be resolved, log an error and stop the setup;
no entities will be then created.
2019-11-28 21:14:20 +01:00
..
__init__.py
manifest.json Update fritzconnection requirement to 0.8.4 (#27698) 2019-10-15 17:11:17 +02:00
sensor.py Resolve hosts for fritzbox_callmonitor (#28761) 2019-11-28 21:14:20 +01:00