[tasmotonov.py] Small improvement in handling input strings
This commit is contained in:
parent
b088ad2cdb
commit
393b5e34b8
@ -126,7 +126,7 @@ if __name__ == '__main__':
|
|||||||
tasmota_addresses_cleaned = []
|
tasmota_addresses_cleaned = []
|
||||||
for address in tasmota_addresses:
|
for address in tasmota_addresses:
|
||||||
if address != '':
|
if address != '':
|
||||||
tasmota_addresses_cleaned.append(address.replace('\n', '').replace(';', '').replace(',', ''))
|
tasmota_addresses_cleaned.append(address.replace('\n', '').replace(';', '').replace(',', '').replace(' ', ''))
|
||||||
|
|
||||||
# now check data for consistency and integrity (is it really an ip address or a domain name?)
|
# now check data for consistency and integrity (is it really an ip address or a domain name?)
|
||||||
tasmota_addresses_validated = []
|
tasmota_addresses_validated = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user