|
1 | 1 | """ |
2 | 2 | A platform which allows you to get information |
3 | | -about successfull logins to Home Assistant. |
| 3 | +about successful logins to Home Assistant. |
4 | 4 | For more details about this component, please refer to the documentation at |
5 | 5 | https://github.com/custom-components/authenticated |
6 | 6 | """ |
@@ -186,14 +186,14 @@ def update(self): |
186 | 186 | continue |
187 | 187 | elif new > stored: |
188 | 188 | updated = True |
189 | | - _LOGGER.info("New successfull login from known IP (%s)", access) |
| 189 | + _LOGGER.info("New successful login from known IP (%s)", access) |
190 | 190 | ipaddress.prev_used_at = ipaddress.last_used_at |
191 | 191 | ipaddress.last_used_at = tokens[access]["last_used_at"] |
192 | 192 | except Exception: # pylint: disable=broad-except |
193 | 193 | pass |
194 | 194 | else: |
195 | 195 | updated = True |
196 | | - _LOGGER.warning("New successfull login from unknown IP (%s)", access) |
| 196 | + _LOGGER.warning("New successful login from unknown IP (%s)", access) |
197 | 197 | accessdata = AuthenticatedData(access, tokens[access]) |
198 | 198 | ipaddress = IPData(accessdata, users, self.provider) |
199 | 199 | ipaddress.lookup() |
@@ -259,6 +259,7 @@ def write_to_file(self): |
259 | 259 | known = self.hass.data[PLATFORM_NAME][known] |
260 | 260 | info[known.ip_address] = { |
261 | 261 | "user_id": known.user_id, |
| 262 | + "username": known.username, |
262 | 263 | "last_used_at": known.last_used_at, |
263 | 264 | "prev_used_at": known.prev_used_at, |
264 | 265 | "country": known.country, |
|
0 commit comments