It shall be unlawful to keep any domestic animal except as follows: (1) Any housing or enclosure shall be well drained, free from accumulations of excrement and objectionable odors and otherwise clean and sanitary. (2) Excrement shall be disposed of in compliance with law. (3) An enclosure for a dangerous or vicious dog shall comply with the section pertaining to such. (4) It shall be unlawful for any owner to chain, tie, fasten or otherwise tether the animal to dog houses, trees, fences, vehicles or other stationary objects as a means of confinement except that the animal may be temporarily confined by a tether while directly attended by its owner. The requirements of this subsection shall become effective on September 1, 2018. From September 1, 2018, until December 31, 2018, enforcement officers shall give a warning for violations of this subsection rather than initiate any further enforcement action, unless dealing with a repeat or recalcitrant violator of this subsection.