Manage IP bans.
Definition at line 207 of file ban.py.
◆ __init__()
| None homeassistant.components.http.ban.IpBanManager.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass |
|
) |
| |
Init the ban manager.
Definition at line 210 of file ban.py.
◆ _add_ban()
| None homeassistant.components.http.ban.IpBanManager._add_ban |
( |
|
self, |
|
|
IpBan |
ip_ban |
|
) |
| |
|
private |
Update config file with new banned IP address.
Definition at line 240 of file ban.py.
◆ async_add_ban()
| None homeassistant.components.http.ban.IpBanManager.async_add_ban |
( |
|
self, |
|
|
IPv4Address | IPv6Address |
remote_addr |
|
) |
| |
Add a new IP address to the banned list.
Definition at line 249 of file ban.py.
◆ async_load()
| None homeassistant.components.http.ban.IpBanManager.async_load |
( |
|
self | ) |
|
Load the existing IP bans.
Definition at line 216 of file ban.py.
◆ hass
| homeassistant.components.http.ban.IpBanManager.hass |
◆ ip_bans_lookup
| homeassistant.components.http.ban.IpBanManager.ip_bans_lookup |
◆ path
| homeassistant.components.http.ban.IpBanManager.path |
The documentation for this class was generated from the following file:
- core/homeassistant/components/http/ban.py