From bce4c51d304a11dc9dc37f47594b465d6b43384d Mon Sep 17 00:00:00 2001 From: Travis Carr Date: Fri, 31 Aug 2018 12:52:08 -0600 Subject: [PATCH 1/2] Some Grammar fixes I noticed. --- custom_components/sensor/authenticated.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/sensor/authenticated.py b/custom_components/sensor/authenticated.py index a0fd965..4263a8b 100644 --- a/custom_components/sensor/authenticated.py +++ b/custom_components/sensor/authenticated.py @@ -49,7 +49,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): notify = config.get(CONF_NOTIFY) exclude = config.get(CONF_EXCLUDE) logs = {'homeassistant.components.http.view': 'info'} - _LOGGER.debug('Making sure the logger is correct set.') + _LOGGER.debug('Making sure the logger is correctly setup.') hass.services.call('logger', 'set_level', logs) log = str(hass.config.path(LOGFILE)) out = str(hass.config.path(OUTFILE)) @@ -95,7 +95,7 @@ def update(self): if count != 0: last_ip = list(log_content)[-1] for ip_address in log_content: - self.prosess_ip(ip_address, log_content[ip_address]['access']) + self.process_ip(ip_address, log_content[ip_address]['access']) known_ips = get_outfile_content(self._out) self._state = last_ip self._hostname = known_ips[last_ip]['hostname'] @@ -105,8 +105,8 @@ def update(self): self._LAT = known_ips[last_ip]['last_authenticated'] self._PAT = known_ips[last_ip]['previous_authenticated_time'] - def prosess_ip(self, ip_address, accesstime): - """Prosess the IP found in the log""" + def process_ip(self, ip_address, accesstime): + """Process the IP found in the log""" if not os.path.isfile(self._out): # First IP self.add_new_ip(ip_address, accesstime) From 54cf9c3cc682d821927f915293c258d84a1ac300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Fri, 31 Aug 2018 21:52:32 +0200 Subject: [PATCH 2/2] Update version --- custom_components/sensor/authenticated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/sensor/authenticated.py b/custom_components/sensor/authenticated.py index 4263a8b..52cfe37 100644 --- a/custom_components/sensor/authenticated.py +++ b/custom_components/sensor/authenticated.py @@ -15,7 +15,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity -__version__ = '0.3.0' +__version__ = '0.3.1' _LOGGER = logging.getLogger(__name__)