A mum facing charges of child neglect after her home was deemed unfit to live in has been spared jail.